// Made with Amplify Shader Editor // Available at the Unity Asset Store - http://u3d.as/y3X Shader "Cheng/Shuimo_xiaosan_soft00" { Properties { [Enum(lizi,1,mesh,0)]_Mode("Mode", Float) = 1 _MainColor("MainColor", Color) = (1,1,1,1) _MainTex("MainTex", 2D) = "white" {} _NoiseTex("NoiseTex", 2D) = "white" {} _Noise_U("Noise_U", Float) = 0.54 _Noise_V("Noise_V", Float) = 0 _Glow("Glow", Range( 0 , 10)) = 1 _Dissolve("Dissolve", Range( 0 , 1.2)) = 0 [HideInInspector] _texcoord( "", 2D ) = "white" {} } SubShader { Tags { "RenderType"="Opaque" "Queue"="Transparent" } LOD 100 CGINCLUDE #pragma target 3.0 ENDCG Blend SrcAlpha OneMinusSrcAlpha Cull Off ColorMask RGBA ZWrite Off ZTest LEqual Offset 0 , 0 Pass { Name "Unlit" Tags { "LightMode"="ForwardBase" } CGPROGRAM #ifndef UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX //only defining to not throw compilation error over Unity 5.5 #define UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input) #endif #pragma vertex vert #pragma fragment frag #pragma multi_compile_instancing #include "UnityCG.cginc" #include "UnityShaderVariables.cginc" #define ASE_NEEDS_FRAG_COLOR struct appdata { float4 vertex : POSITION; float4 color : COLOR; UNITY_VERTEX_INPUT_INSTANCE_ID float4 ase_texcoord : TEXCOORD0; float4 ase_texcoord1 : TEXCOORD1; }; struct v2f { float4 vertex : SV_POSITION; #ifdef ASE_NEEDS_FRAG_WORLD_POSITION float3 worldPos : TEXCOORD0; #endif UNITY_VERTEX_INPUT_INSTANCE_ID UNITY_VERTEX_OUTPUT_STEREO float4 ase_texcoord1 : TEXCOORD1; float4 ase_color : COLOR; }; uniform half _Glow; uniform sampler2D _MainTex; uniform sampler2D _NoiseTex; uniform half4 _NoiseTex_ST; uniform half _Noise_U; uniform half _Noise_V; uniform half4 _MainColor; uniform half _Dissolve; uniform half _Mode; v2f vert ( appdata v ) { v2f o; UNITY_SETUP_INSTANCE_ID(v); UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); UNITY_TRANSFER_INSTANCE_ID(v, o); o.ase_texcoord1.xy = v.ase_texcoord.xy; o.ase_color = v.color; o.ase_texcoord1.zw = v.ase_texcoord1.xy; float3 vertexValue = float3(0, 0, 0); #if ASE_ABSOLUTE_VERTEX_POS vertexValue = v.vertex.xyz; #endif vertexValue = vertexValue; #if ASE_ABSOLUTE_VERTEX_POS v.vertex.xyz = vertexValue; #else v.vertex.xyz += vertexValue; #endif o.vertex = UnityObjectToClipPos(v.vertex); #ifdef ASE_NEEDS_FRAG_WORLD_POSITION o.worldPos = mul(unity_ObjectToWorld, v.vertex).xyz; #endif return o; } fixed4 frag (v2f i ) : SV_Target { UNITY_SETUP_INSTANCE_ID(i); UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i); fixed4 finalColor; #ifdef ASE_NEEDS_FRAG_WORLD_POSITION float3 WorldPosition = i.worldPos; #endif half2 uv0_NoiseTex = i.ase_texcoord1.xy * _NoiseTex_ST.xy + _NoiseTex_ST.zw; half2 appendResult32 = (half2(( _Noise_U * _Time.y ) , ( _Time.y * _Noise_V ))); half4 tex2DNode1 = tex2D( _MainTex, ( uv0_NoiseTex + appendResult32 ) ); half2 uv18 = i.ase_texcoord1.zw * float2( 1,1 ) + float2( 0,0 ); half lerpResult36 = lerp( _Dissolve , ( 1.0 - uv18.x ) , _Mode); float2 uv_NoiseTex = i.ase_texcoord1.xy * _NoiseTex_ST.xy + _NoiseTex_ST.zw; half4 tex2DNode11 = tex2D( _NoiseTex, uv_NoiseTex ); half temp_output_3_0_g1 = tex2DNode11.r; half4 appendResult6 = (half4(( tex2DNode1 * _MainColor * i.ase_color ).rgb , ( tex2DNode1.a * _MainColor.a * i.ase_color.a * saturate( ( ( lerpResult36 - temp_output_3_0_g1 ) / ( 0.0 - temp_output_3_0_g1 ) ) ) ))); finalColor = ( _Glow * appendResult6 ); return finalColor; } ENDCG } } CustomEditor "ASEMaterialInspector" } /*ASEBEGIN Version=18100 233;177;2115;1105;2294.296;639.2145;1.793516;True;False Node;AmplifyShaderEditor.CommentaryNode;39;-1397.12,-503.6992;Inherit;False;987.2017;659.9999;UV_liudong;8;28;27;26;30;29;32;31;33;;1,1,1,1;0;0 Node;AmplifyShaderEditor.TimeNode;26;-1347.12,-132.699;Inherit;False;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.RangedFloatNode;28;-1294.12,41.30106;Half;False;Property;_Noise_V;Noise_V;5;0;Create;True;0;0;False;0;False;0;1.39;0;0;0;1;FLOAT;0 Node;AmplifyShaderEditor.RangedFloatNode;27;-1306.12,-248.699;Half;False;Property;_Noise_U;Noise_U;4;0;Create;True;0;0;False;0;False;0.54;1;0;0;0;1;FLOAT;0 Node;AmplifyShaderEditor.CommentaryNode;40;-980.7726,386.2654;Inherit;False;1154;501;UV2_xiaosan;7;8;38;36;37;35;34;45;;1,1,1,1;0;0 Node;AmplifyShaderEditor.SimpleMultiplyOpNode;29;-1025.118,-19.69896;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.SimpleMultiplyOpNode;30;-1034.118,-213.6989;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.TextureCoordinatesNode;8;-941.7723,578.2659;Inherit;False;1;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.RangedFloatNode;38;-669.7726,770.2659;Inherit;False;Property;_Mode;Mode;0;1;[Enum];Create;True;2;lizi;1;mesh;0;0;False;0;False;1;0;0;0;0;1;FLOAT;0 Node;AmplifyShaderEditor.RangedFloatNode;37;-749.7725,434.2654;Inherit;False;Property;_Dissolve;Dissolve;7;0;Create;True;0;0;False;0;False;0;0.468;0;1.2;0;1;FLOAT;0 Node;AmplifyShaderEditor.TextureCoordinatesNode;31;-883.1177,-453.6993;Inherit;True;0;11;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.DynamicAppendNode;32;-792.1187,-130.699;Inherit;True;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0 Node;AmplifyShaderEditor.OneMinusNode;35;-660.7726,597.2659;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.SamplerNode;11;-608.6446,1034.191;Inherit;True;Property;_NoiseTex;NoiseTex;3;0;Create;True;0;0;False;0;False;-1;None;3a5a96df060a5cf4a9cc0c59e13486b7;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;6;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.CommentaryNode;41;-327.2,-376.9279;Inherit;False;1110.7;712.2279;Base;8;4;3;1;25;5;2;6;44;;1,1,1,1;0;0 Node;AmplifyShaderEditor.LerpOp;36;-393.7725,578.266;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.SimpleAddOpNode;33;-563.9197,-246.199;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0 Node;AmplifyShaderEditor.SamplerNode;1;-277.2,-279.7;Inherit;True;Property;_MainTex;MainTex;2;0;Create;True;0;0;False;0;False;-1;f11df39306feab44da9f808b52a674f6;6961cae86b5a20e45876d268d9af77a5;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;6;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.ColorNode;3;-245.2,-61.69999;Inherit;False;Property;_MainColor;MainColor;1;0;Create;True;0;0;False;0;False;1,1,1,1;1,1,1,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.VertexColorNode;4;-191.2,133.3;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.FunctionNode;45;-124.5989,630.8115;Inherit;True;SmoothStep_Smaple;-1;;1;32788551bc99c734c8f9d0cf76c936c8;0;3;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.SimpleMultiplyOpNode;5;326.8,153.3;Inherit;False;4;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.SimpleMultiplyOpNode;2;279.8,-40.69999;Inherit;False;3;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;COLOR;0,0,0,0;False;1;COLOR;0 Node;AmplifyShaderEditor.DynamicAppendNode;6;472.2153,15.49867;Inherit;False;FLOAT4;4;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT4;0 Node;AmplifyShaderEditor.RangedFloatNode;25;371.6959,-153.2924;Inherit;False;Property;_Glow;Glow;6;0;Create;True;0;0;False;0;False;1;1;0;10;0;1;FLOAT;0 Node;AmplifyShaderEditor.SmoothstepOpNode;34;-132.0724,416.1661;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;1;FLOAT;0 Node;AmplifyShaderEditor.SimpleMultiplyOpNode;44;648.3242,-4.636143;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT4;0,0,0,0;False;1;FLOAT4;0 Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;43;855.9384,-4.08411;Half;False;True;-1;2;ASEMaterialInspector;100;1;Cheng/Shuimo_xiaosan_soft00;0770190933193b94aaa3065e307002fa;True;Unlit;0;0;Unlit;2;True;2;5;False;-1;10;False;-1;0;1;False;-1;0;False;-1;True;0;False;-1;0;False;-1;True;False;True;2;False;-1;True;True;True;True;True;0;False;-1;True;False;255;False;-1;255;False;-1;255;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;True;2;False;-1;True;3;False;-1;True;True;0;False;-1;0;False;-1;True;2;RenderType=Opaque=RenderType;Queue=Transparent=Queue=0;True;2;0;False;False;False;False;False;False;False;False;False;True;1;LightMode=ForwardBase;False;0;;0;0;Standard;1;Vertex Position,InvertActionOnDeselection;1;0;1;True;False;;0 WireConnection;29;0;26;2 WireConnection;29;1;28;0 WireConnection;30;0;27;0 WireConnection;30;1;26;2 WireConnection;32;0;30;0 WireConnection;32;1;29;0 WireConnection;35;0;8;1 WireConnection;36;0;37;0 WireConnection;36;1;35;0 WireConnection;36;2;38;0 WireConnection;33;0;31;0 WireConnection;33;1;32;0 WireConnection;1;1;33;0 WireConnection;45;2;36;0 WireConnection;45;3;11;1 WireConnection;5;0;1;4 WireConnection;5;1;3;4 WireConnection;5;2;4;4 WireConnection;5;3;45;0 WireConnection;2;0;1;0 WireConnection;2;1;3;0 WireConnection;2;2;4;0 WireConnection;6;0;2;0 WireConnection;6;3;5;0 WireConnection;34;0;36;0 WireConnection;34;1;11;1 WireConnection;44;0;25;0 WireConnection;44;1;6;0 WireConnection;43;0;44;0 ASEEND*/ //CHKSM=C3AEEBD4060E473A49C9A9597EFADF0549419531