摘要: 顶点动画是在顶点着色器中对顶点先进行偏移,然后做MVP变化,来模拟动画效果。 Shader "Custom/WaterMat" { Properties { _MainTex ("Texture", 2D) = "white" {} _WaveSpeed("WaveSpeed", float) = 阅读全文
posted @ 2022-02-22 18:40 PAddingoi 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 序列帧动画 Shader "Custom/ImageSequenceAnimationMat" { Properties { _MainTex ("Texture", 2D) = "white" {} _HorizontalAmount("Horizontal Amount", float) = 1 阅读全文
posted @ 2022-02-22 16:33 PAddingoi 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 玻璃效果 // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' Shader "Custom/Glass" { Properties { _MainTex("MainTex", 2D) = 阅读全文
posted @ 2022-02-22 14:39 PAddingoi 阅读(2) 评论(0) 推荐(0) 编辑