RO_Effect_HuDun_01.shader 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. // Made with Amplify Shader Editor
  2. // Available at the Unity Asset Store - http://u3d.as/y3X
  3. Shader "RO/RO_Effect_HuDun_01"
  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
  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. inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
  50. {
  51. return half4 ( 0, 0, 0, s.Alpha );
  52. }
  53. void surf( Input i , inout SurfaceOutput o )
  54. {
  55. float3 ase_worldPos = i.worldPos;
  56. float3 ase_worldViewDir = normalize( UnityWorldSpaceViewDir( ase_worldPos ) );
  57. float3 ase_worldNormal = i.worldNormal;
  58. float fresnelNdotV2 = dot( ase_worldNormal, ase_worldViewDir );
  59. float fresnelNode2 = ( 0.0 + 1.0 * pow( 1.0 - fresnelNdotV2, 1.0 ) );
  60. float smoothstepResult6 = smoothstep( _Min , saturate( ( _Min + _MinAdd ) ) , fresnelNode2);
  61. float smoothstepResult23 = smoothstep( _Min2 , saturate( ( _Min2 + _MinAdd2 ) ) , fresnelNode2);
  62. float2 appendResult29 = (float2(_UVspeed.x , _UVspeed.y));
  63. float2 uv_MainTex = i.uv_texcoord * _MainTex_ST.xy + _MainTex_ST.zw;
  64. float2 panner16 = ( 1.0 * _Time.y * appendResult29 + uv_MainTex);
  65. float2 appendResult30 = (float2(_UVspeed.z , _UVspeed.w));
  66. float2 panner31 = ( 1.0 * _Time.y * appendResult30 + uv_MainTex);
  67. float temp_output_14_0 = ( smoothstepResult23 * tex2D( _MainTex, ( float4( panner16, 0.0 , 0.0 ) + ( tex2D( _MainTex, panner31 ) * _UVAdd ) ).rg ).r );
  68. float clampResult44 = clamp( ( smoothstepResult6 + temp_output_14_0 ) , _ColorRemap.x , _ColorRemap.y );
  69. float4 lerpResult36 = lerp( _Color0 , _Color1 , (_ColorRemap.z + (clampResult44 - _ColorRemap.x) * (_ColorRemap.w - _ColorRemap.z) / (_ColorRemap.y - _ColorRemap.x)));
  70. o.Emission = ( lerpResult36 * i.vertexColor ).rgb;
  71. float lerpResult22 = lerp( temp_output_14_0 , smoothstepResult6 , smoothstepResult6);
  72. o.Alpha = ( lerpResult22 * i.vertexColor.a );
  73. }
  74. ENDCG
  75. }
  76. CustomEditor "ASEMaterialInspector"
  77. }
  78. /*ASEBEGIN
  79. Version=18712
  80. 2389;7;1440;1004;-461.2596;442.0047;1.397782;True;True
  81. 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
  82. 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
  83. 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
  84. Node;AmplifyShaderEditor.WireNode;32;-970.9639,767.0887;Inherit;False;1;0;FLOAT2;0,0;False;1;FLOAT2;0
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. Node;AmplifyShaderEditor.SimpleAddOpNode;26;-511.2786,14.75;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  93. 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
  94. 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
  95. 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
  96. 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
  97. 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
  98. Node;AmplifyShaderEditor.SaturateNode;27;-376.2786,7.75;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  99. Node;AmplifyShaderEditor.SimpleAddOpNode;8;-584.2366,-312.9471;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  100. 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
  101. 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
  102. Node;AmplifyShaderEditor.SaturateNode;9;-433.2367,-318.9471;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  103. 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
  104. 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
  105. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;14;-31.39899,333.8239;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  106. 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
  107. Node;AmplifyShaderEditor.SimpleAddOpNode;42;385.2234,356.6494;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  108. 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
  109. 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
  110. 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
  111. 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
  112. Node;AmplifyShaderEditor.VertexColorNode;46;915.5388,754.4971;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  113. 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
  114. 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
  115. 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
  116. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;47;1186.708,428.8138;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  117. Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;1863.572,134.3758;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;RO/RO_Effect_HuDun_01;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
  118. WireConnection;30;0;28;3
  119. WireConnection;30;1;28;4
  120. WireConnection;32;0;15;0
  121. WireConnection;31;0;32;0
  122. WireConnection;31;2;30;0
  123. WireConnection;29;0;28;1
  124. WireConnection;29;1;28;2
  125. WireConnection;19;0;18;0
  126. WireConnection;19;1;31;0
  127. WireConnection;26;0;24;0
  128. WireConnection;26;1;25;0
  129. WireConnection;34;0;19;0
  130. WireConnection;34;1;35;0
  131. WireConnection;16;0;15;0
  132. WireConnection;16;2;29;0
  133. WireConnection;27;0;26;0
  134. WireConnection;8;0;7;0
  135. WireConnection;8;1;10;0
  136. WireConnection;33;0;16;0
  137. WireConnection;33;1;34;0
  138. WireConnection;23;0;2;0
  139. WireConnection;23;1;24;0
  140. WireConnection;23;2;27;0
  141. WireConnection;9;0;8;0
  142. WireConnection;13;0;18;0
  143. WireConnection;13;1;33;0
  144. WireConnection;6;0;2;0
  145. WireConnection;6;1;7;0
  146. WireConnection;6;2;9;0
  147. WireConnection;14;0;23;0
  148. WireConnection;14;1;13;1
  149. WireConnection;42;0;6;0
  150. WireConnection;42;1;14;0
  151. WireConnection;44;0;42;0
  152. WireConnection;44;1;45;1
  153. WireConnection;44;2;45;2
  154. WireConnection;43;0;44;0
  155. WireConnection;43;1;45;1
  156. WireConnection;43;2;45;2
  157. WireConnection;43;3;45;3
  158. WireConnection;43;4;45;4
  159. WireConnection;22;0;14;0
  160. WireConnection;22;1;6;0
  161. WireConnection;22;2;6;0
  162. WireConnection;36;0;38;0
  163. WireConnection;36;1;39;0
  164. WireConnection;36;2;43;0
  165. WireConnection;48;0;36;0
  166. WireConnection;48;1;46;0
  167. WireConnection;47;0;22;0
  168. WireConnection;47;1;46;4
  169. WireConnection;0;2;48;0
  170. WireConnection;0;9;47;0
  171. ASEEND*/
  172. //CHKSM=CE4E0A72AAE6FBFBF0CB9DF741096C63024371FD