Shader"wx/water"{
Properties{
_MainTex("Main Tex",2D)="white"{}
_Color("Color Tint",Color)=(1,1,1,1)
_Magnitude("Distortion Magnitude",Float)=1
_Frequency("Distortion Frequency",Float)=1
_InvWaveLength("Distortion Inverse Wave Length",Float)=10
_Speed("Speed",Float)=0.5
}
SubShader {
Tags{"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "DisableBatching"="True"}
Pass{
Tags{"LightMode"="ForwardBase"}
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
Cull Off
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
sampler2D _MainTex;
float4 _MainTex_ST;
fixed4 _Color;
Shader学习笔记(17) 顶点偏移水面动画
最新推荐文章于 2023-06-24 23:48:56 发布