RO_Effect_HuDun_02.shader 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. // Made with Amplify Shader Editor
  2. // Available at the Unity Asset Store - http://u3d.as/y3X
  3. Shader "RO/RO_Effect_HuDun_02"
  4. {
  5. Properties
  6. {
  7. _Min("Min", Range( 0 , 1)) = 0
  8. _MinAdd("MinAdd", Range( 0 , 1)) = 0
  9. _MainTex("MainTex", 2D) = "white" {}
  10. _Min2("Min2", Range( 0 , 1)) = 0
  11. _MinAdd2("MinAdd2", Range( 0 , 1)) = 0
  12. _UVAdd("UVAdd", Range( 0 , 1)) = 0
  13. _UVspeed("UVspeed", Vector) = (0,0,0,0)
  14. [HDR]_Color0("Color 0", Color) = (0,0,0,0)
  15. [HDR]_Color1("Color 1", Color) = (0,0,0,0)
  16. _ColorRemap("ColorRemap", Vector) = (0,1,0,1)
  17. [HideInInspector] _texcoord( "", 2D ) = "white" {}
  18. [HideInInspector] __dirty( "", Int ) = 1
  19. }
  20. SubShader
  21. {
  22. Tags{ "RenderType" = "Custom" "Queue" = "Transparent+0" "IsEmissive" = "true" }
  23. Cull Back
  24. ZWrite Off
  25. ZTest LEqual
  26. Blend SrcAlpha OneMinusSrcAlpha
  27. CGPROGRAM
  28. #include "UnityShaderVariables.cginc"
  29. #pragma target 3.0
  30. #pragma surface surf Unlit keepalpha noshadow vertex:vertexDataFunc
  31. struct Input
  32. {
  33. float3 worldPos;
  34. float3 worldNormal;
  35. float2 uv_texcoord;
  36. float4 vertexColor : COLOR;
  37. };
  38. uniform float4 _Color0;
  39. uniform float4 _Color1;
  40. uniform float _Min;
  41. uniform float _MinAdd;
  42. uniform float _Min2;
  43. uniform float _MinAdd2;
  44. uniform sampler2D _MainTex;
  45. uniform float4 _UVspeed;
  46. uniform float4 _MainTex_ST;
  47. uniform float _UVAdd;
  48. uniform float4 _ColorRemap;
  49. void vertexDataFunc( inout appdata_full v, out Input o )
  50. {
  51. UNITY_INITIALIZE_OUTPUT( Input, o );
  52. float3 ase_vertexNormal = v.normal.xyz;
  53. v.vertex.xyz += ( ( v.texcoord.z * 0.1 ) * ase_vertexNormal );
  54. v.vertex.w = 1;
  55. }
  56. inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
  57. {
  58. return half4 ( 0, 0, 0, s.Alpha );
  59. }
  60. void surf( Input i , inout SurfaceOutput o )
  61. {
  62. float3 ase_worldPos = i.worldPos;
  63. float3 ase_worldViewDir = normalize( UnityWorldSpaceViewDir( ase_worldPos ) );
  64. float3 ase_worldNormal = i.worldNormal;
  65. float fresnelNdotV2 = dot( ase_worldNormal, ase_worldViewDir );
  66. float fresnelNode2 = ( 0.0 + 1.0 * pow( 1.0 - fresnelNdotV2, 1.0 ) );
  67. float smoothstepResult6 = smoothstep( _Min , saturate( ( _Min + _MinAdd ) ) , fresnelNode2);
  68. float smoothstepResult23 = smoothstep( _Min2 , saturate( ( _Min2 + _MinAdd2 ) ) , fresnelNode2);
  69. float2 appendResult29 = (float2(_UVspeed.x , _UVspeed.y));
  70. float2 uv_MainTex = i.uv_texcoord * _MainTex_ST.xy + _MainTex_ST.zw;
  71. float2 panner16 = ( 1.0 * _Time.y * appendResult29 + uv_MainTex);
  72. float2 appendResult30 = (float2(_UVspeed.z , _UVspeed.w));
  73. float2 panner31 = ( 1.0 * _Time.y * appendResult30 + uv_MainTex);
  74. float temp_output_14_0 = ( smoothstepResult23 * tex2D( _MainTex, ( float4( panner16, 0.0 , 0.0 ) + ( tex2D( _MainTex, panner31 ) * _UVAdd ) ).rg ).r );
  75. float clampResult44 = clamp( ( smoothstepResult6 + temp_output_14_0 ) , _ColorRemap.x , _ColorRemap.y );
  76. float4 lerpResult36 = lerp( _Color0 , _Color1 , (_ColorRemap.z + (clampResult44 - _ColorRemap.x) * (_ColorRemap.w - _ColorRemap.z) / (_ColorRemap.y - _ColorRemap.x)));
  77. o.Emission = ( lerpResult36 * i.vertexColor ).rgb;
  78. float lerpResult22 = lerp( temp_output_14_0 , smoothstepResult6 , smoothstepResult6);
  79. o.Alpha = saturate( ( lerpResult22 * i.vertexColor.a ) );
  80. }
  81. ENDCG
  82. }
  83. CustomEditor "ASEMaterialInspector"
  84. }
  85. /*ASEBEGIN
  86. Version=18900
  87. 2665;1;1166;1010;-813.8017;-176.4035;1;True;False
  88. Node;AmplifyShaderEditor.TextureCoordinatesNode;15;-1049.308,533.6208;Inherit;False;0;18;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
  89. Node;AmplifyShaderEditor.Vector4Node;28;-1409.45,816.7043;Inherit;False;Property;_UVspeed;UVspeed;7;0;Create;True;0;0;0;False;0;False;0,0,0,0;0,0,0,0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  90. Node;AmplifyShaderEditor.DynamicAppendNode;30;-1170.105,1203.958;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  91. Node;AmplifyShaderEditor.WireNode;32;-970.9639,767.0887;Inherit;False;1;0;FLOAT2;0,0;False;1;FLOAT2;0
  92. Node;AmplifyShaderEditor.TexturePropertyNode;18;-897.5455,777.4403;Inherit;True;Property;_MainTex;MainTex;3;0;Create;True;0;0;0;False;0;False;None;None;False;white;Auto;Texture2D;-1;0;2;SAMPLER2D;0;SAMPLERSTATE;1
  93. Node;AmplifyShaderEditor.PannerNode;31;-885.0436,1117.901;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0;False;1;FLOAT;1;False;1;FLOAT2;0
  94. Node;AmplifyShaderEditor.RangedFloatNode;25;-866.2786,13.75;Inherit;False;Property;_MinAdd2;MinAdd2;5;0;Create;True;0;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
  95. Node;AmplifyShaderEditor.RangedFloatNode;35;-656.7553,1230.194;Inherit;False;Property;_UVAdd;UVAdd;6;0;Create;True;0;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
  96. Node;AmplifyShaderEditor.DynamicAppendNode;29;-1178.173,736.0265;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  97. Node;AmplifyShaderEditor.SamplerNode;19;-679.9765,1001.729;Inherit;True;Property;_TextureSample0;Texture Sample 0;5;0;Create;True;0;0;0;False;0;False;-1;None;None;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;8;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;6;FLOAT;0;False;7;SAMPLERSTATE;;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  98. Node;AmplifyShaderEditor.RangedFloatNode;24;-832.2786,-97.25;Inherit;False;Property;_Min2;Min2;4;0;Create;True;0;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
  99. Node;AmplifyShaderEditor.SimpleAddOpNode;26;-511.2786,14.75;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  100. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;34;-332.7955,994.684;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
  101. Node;AmplifyShaderEditor.RangedFloatNode;10;-927.2366,-223.947;Inherit;False;Property;_MinAdd;MinAdd;2;0;Create;True;0;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
  102. Node;AmplifyShaderEditor.PannerNode;16;-589.3989,557.824;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0;False;1;FLOAT;1;False;1;FLOAT2;0
  103. Node;AmplifyShaderEditor.RangedFloatNode;7;-898.2366,-369.9471;Inherit;False;Property;_Min;Min;1;0;Create;True;0;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
  104. Node;AmplifyShaderEditor.SimpleAddOpNode;8;-584.2366,-312.9471;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  105. Node;AmplifyShaderEditor.FresnelNode;2;-907.6882,-567.0955;Inherit;False;Standard;WorldNormal;ViewDir;False;False;5;0;FLOAT3;0,0,1;False;4;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;1;False;3;FLOAT;1;False;1;FLOAT;0
  106. Node;AmplifyShaderEditor.SaturateNode;27;-376.2786,7.75;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  107. Node;AmplifyShaderEditor.SimpleAddOpNode;33;-375.2263,707.7148;Inherit;False;2;2;0;FLOAT2;0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
  108. Node;AmplifyShaderEditor.SamplerNode;13;-329.399,435.8239;Inherit;True;Property;_111;111;3;0;Create;True;0;0;0;False;0;False;-1;None;None;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;8;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;6;FLOAT;0;False;7;SAMPLERSTATE;;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  109. Node;AmplifyShaderEditor.SmoothstepOpNode;23;-237.6759,-121.7176;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;1;FLOAT;0
  110. Node;AmplifyShaderEditor.SaturateNode;9;-433.2367,-318.9471;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  111. Node;AmplifyShaderEditor.SmoothstepOpNode;6;-262.2367,-462.9472;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;1;FLOAT;0
  112. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;14;-31.39899,333.8239;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  113. Node;AmplifyShaderEditor.SimpleAddOpNode;42;385.2234,356.6494;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  114. Node;AmplifyShaderEditor.Vector4Node;45;353.9167,548.9703;Inherit;False;Property;_ColorRemap;ColorRemap;10;0;Create;True;0;0;0;False;0;False;0,1,0,1;0,1,0,1;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  115. Node;AmplifyShaderEditor.ClampOpNode;44;558.0167,487.8704;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;1;FLOAT;0
  116. Node;AmplifyShaderEditor.TFHCRemapNode;43;751.7168,421.5705;Inherit;False;5;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;3;FLOAT;0;False;4;FLOAT;1;False;1;FLOAT;0
  117. Node;AmplifyShaderEditor.ColorNode;39;406.9187,-3.756531;Inherit;False;Property;_Color1;Color 1;9;1;[HDR];Create;True;0;0;0;False;0;False;0,0,0,0;0,0,0,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  118. Node;AmplifyShaderEditor.VertexColorNode;46;915.5388,754.4971;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  119. Node;AmplifyShaderEditor.ColorNode;38;407.9187,-183.7565;Inherit;False;Property;_Color0;Color 0;8;1;[HDR];Create;True;0;0;0;False;0;False;0,0,0,0;0,0,0,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  120. Node;AmplifyShaderEditor.LerpOp;22;398.703,177.846;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
  121. Node;AmplifyShaderEditor.TextureCoordinatesNode;54;1255.038,580.1575;Inherit;False;0;-1;4;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  122. Node;AmplifyShaderEditor.NormalVertexDataNode;52;1444.08,857.993;Inherit;False;0;5;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  123. Node;AmplifyShaderEditor.ScaleNode;55;1538.802,663.4035;Inherit;False;0.1;1;0;FLOAT;0;False;1;FLOAT;0
  124. Node;AmplifyShaderEditor.LerpOp;36;699.9187,123.2435;Inherit;False;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
  125. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;47;1186.708,428.8138;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  126. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;48;1178.322,209.3619;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
  127. Node;AmplifyShaderEditor.SaturateNode;49;1518.547,392.586;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  128. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;53;1790.843,664.4725;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0
  129. Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;2062.436,139.187;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;RO/RO_Effect_HuDun_02;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;Back;2;False;-1;3;False;-1;False;0;False;-1;0;False;-1;False;0;Custom;0.5;True;False;0;True;Custom;;Transparent;All;14;all;True;True;True;True;0;False;-1;False;0;False;-1;255;False;-1;255;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;False;2;15;10;25;False;0.5;False;2;5;False;-1;10;False;-1;0;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;0;0,0,0,0;VertexOffset;True;False;Cylindrical;False;Relative;0;;0;-1;-1;-1;0;False;0;0;False;-1;-1;0;False;-1;0;0;0;False;0.1;False;-1;0;False;-1;False;15;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT;0;False;4;FLOAT;0;False;6;FLOAT3;0,0,0;False;7;FLOAT3;0,0,0;False;8;FLOAT;0;False;9;FLOAT;0;False;10;FLOAT;0;False;13;FLOAT3;0,0,0;False;11;FLOAT3;0,0,0;False;12;FLOAT3;0,0,0;False;14;FLOAT4;0,0,0,0;False;15;FLOAT3;0,0,0;False;0
  130. WireConnection;30;0;28;3
  131. WireConnection;30;1;28;4
  132. WireConnection;32;0;15;0
  133. WireConnection;31;0;32;0
  134. WireConnection;31;2;30;0
  135. WireConnection;29;0;28;1
  136. WireConnection;29;1;28;2
  137. WireConnection;19;0;18;0
  138. WireConnection;19;1;31;0
  139. WireConnection;26;0;24;0
  140. WireConnection;26;1;25;0
  141. WireConnection;34;0;19;0
  142. WireConnection;34;1;35;0
  143. WireConnection;16;0;15;0
  144. WireConnection;16;2;29;0
  145. WireConnection;8;0;7;0
  146. WireConnection;8;1;10;0
  147. WireConnection;27;0;26;0
  148. WireConnection;33;0;16;0
  149. WireConnection;33;1;34;0
  150. WireConnection;13;0;18;0
  151. WireConnection;13;1;33;0
  152. WireConnection;23;0;2;0
  153. WireConnection;23;1;24;0
  154. WireConnection;23;2;27;0
  155. WireConnection;9;0;8;0
  156. WireConnection;6;0;2;0
  157. WireConnection;6;1;7;0
  158. WireConnection;6;2;9;0
  159. WireConnection;14;0;23;0
  160. WireConnection;14;1;13;1
  161. WireConnection;42;0;6;0
  162. WireConnection;42;1;14;0
  163. WireConnection;44;0;42;0
  164. WireConnection;44;1;45;1
  165. WireConnection;44;2;45;2
  166. WireConnection;43;0;44;0
  167. WireConnection;43;1;45;1
  168. WireConnection;43;2;45;2
  169. WireConnection;43;3;45;3
  170. WireConnection;43;4;45;4
  171. WireConnection;22;0;14;0
  172. WireConnection;22;1;6;0
  173. WireConnection;22;2;6;0
  174. WireConnection;55;0;54;3
  175. WireConnection;36;0;38;0
  176. WireConnection;36;1;39;0
  177. WireConnection;36;2;43;0
  178. WireConnection;47;0;22;0
  179. WireConnection;47;1;46;4
  180. WireConnection;48;0;36;0
  181. WireConnection;48;1;46;0
  182. WireConnection;49;0;47;0
  183. WireConnection;53;0;55;0
  184. WireConnection;53;1;52;0
  185. WireConnection;0;2;48;0
  186. WireConnection;0;9;49;0
  187. WireConnection;0;11;53;0
  188. ASEEND*/
  189. //CHKSM=5BDB873EBD26A7AED6A4DADFF0238E7C044DBA16