RO_Effect_JZB_02.shader 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. // Made with Amplify Shader Editor
  2. // Available at the Unity Asset Store - http://u3d.as/y3X
  3. Shader "RO/RO_Effect_JZB_02"
  4. {
  5. Properties
  6. {
  7. _MainTex("MainTex", 2D) = "white" {}
  8. _Max("Max", Range( 0 , 0.9999)) = 0.9999
  9. _MainTexOffest("MainTexOffest", Vector) = (1,1,0,1)
  10. [Enum(UnityEngine.Rendering.BlendMode)]_Src2("Src", Float) = 5
  11. [Enum(UnityEngine.Rendering.BlendMode)]_Dst2("Dst", Float) = 10
  12. [Enum(UnityEngine.Rendering.CullMode)]_CullMode2("CullMode", Float) = 0
  13. [Enum(Off,0,On,1)]_ZWrite2("ZWrite", Float) = 0
  14. [Enum(UnityEngine.Rendering.CompareFunction)]_ZTest2("ZTest", Float) = 4
  15. _Hue("Hue", Range( 0 , 1)) = 0
  16. [HideInInspector] _texcoord( "", 2D ) = "white" {}
  17. [HideInInspector] __dirty( "", Int ) = 1
  18. }
  19. SubShader
  20. {
  21. Tags{ "RenderType" = "Custom" "Queue" = "Transparent+0" "IsEmissive" = "true" }
  22. Cull [_CullMode2]
  23. ZWrite [_ZWrite2]
  24. ZTest [_ZTest2]
  25. Blend [_Src2] [_Dst2]
  26. CGPROGRAM
  27. #include "UnityShaderVariables.cginc"
  28. #pragma target 3.0
  29. #pragma surface surf Unlit keepalpha noshadow noambient novertexlights nolightmap nodynlightmap nodirlightmap nometa noforwardadd
  30. struct Input
  31. {
  32. float2 uv_texcoord;
  33. float4 vertexColor : COLOR;
  34. };
  35. uniform float _Dst2;
  36. uniform float _Src2;
  37. uniform float _CullMode2;
  38. uniform float _ZTest2;
  39. uniform float _ZWrite2;
  40. uniform float _Hue;
  41. uniform sampler2D _MainTex;
  42. uniform float4 _MainTexOffest;
  43. uniform float _Max;
  44. float3 HSVToRGB( float3 c )
  45. {
  46. float4 K = float4( 1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0 );
  47. float3 p = abs( frac( c.xxx + K.xyz ) * 6.0 - K.www );
  48. return c.z * lerp( K.xxx, saturate( p - K.xxx ), c.y );
  49. }
  50. float3 RGBToHSV(float3 c)
  51. {
  52. float4 K = float4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);
  53. float4 p = lerp( float4( c.bg, K.wz ), float4( c.gb, K.xy ), step( c.b, c.g ) );
  54. float4 q = lerp( float4( p.xyw, c.r ), float4( c.r, p.yzx ), step( p.x, c.r ) );
  55. float d = q.x - min( q.w, q.y );
  56. float e = 1.0e-10;
  57. return float3( abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x);
  58. }
  59. inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
  60. {
  61. return half4 ( 0, 0, 0, s.Alpha );
  62. }
  63. void surf( Input i , inout SurfaceOutput o )
  64. {
  65. float2 appendResult128 = (float2(_MainTexOffest.x , _MainTexOffest.y));
  66. float2 appendResult121 = (float2(_MainTexOffest.z , 0.0));
  67. float2 uv_TexCoord12 = i.uv_texcoord * float2( 2,2 );
  68. float2 UV130 = ( uv_TexCoord12 - float2( 1,1 ) );
  69. float2 appendResult103 = (float2(frac( ( atan2( (UV130).x , (UV130).y ) / 6.28318548202515 ) ) , length( UV130 )));
  70. float2 panner123 = ( 1.0 * _Time.y * appendResult121 + appendResult103);
  71. float2 appendResult122 = (float2(0.0 , _MainTexOffest.w));
  72. float2 panner124 = ( 1.0 * _Time.y * appendResult122 + appendResult103);
  73. float2 appendResult129 = (float2((panner123).x , (panner124).y));
  74. float temp_output_13_0 = length( UV130 );
  75. float3 hsvTorgb147 = RGBToHSV( ( tex2D( _MainTex, ( ( appendResult128 * appendResult129 ) + temp_output_13_0 ) ) * i.vertexColor ).rgb );
  76. float3 hsvTorgb148 = HSVToRGB( float3(( _Hue + hsvTorgb147.x ),hsvTorgb147.y,hsvTorgb147.z) );
  77. o.Emission = hsvTorgb148;
  78. float smoothstepResult14 = smoothstep( 1.0 , _Max , temp_output_13_0);
  79. o.Alpha = ( i.vertexColor.a * smoothstepResult14 );
  80. }
  81. ENDCG
  82. }
  83. CustomEditor "ASEMaterialInspector"
  84. }
  85. /*ASEBEGIN
  86. Version=18500
  87. 2319;1;1512;1010;-1706.7;557.585;1;True;True
  88. Node;AmplifyShaderEditor.Vector2Node;9;-1374.277,467.0343;Float;False;Constant;_Vector0;Vector 0;0;0;Create;True;0;0;False;0;False;2,2;0,0;0;3;FLOAT2;0;FLOAT;1;FLOAT;2
  89. Node;AmplifyShaderEditor.Vector2Node;10;-1094.589,616.5663;Float;False;Constant;_Vector1;Vector 1;0;0;Create;True;0;0;False;0;False;1,1;0,0;0;3;FLOAT2;0;FLOAT;1;FLOAT;2
  90. Node;AmplifyShaderEditor.TextureCoordinatesNode;12;-1174.08,456.6942;Inherit;False;0;-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
  91. Node;AmplifyShaderEditor.SimpleSubtractOpNode;11;-869.2953,460.8353;Inherit;False;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
  92. Node;AmplifyShaderEditor.RegisterLocalVarNode;130;-672.6439,483.9986;Inherit;False;UV;-1;True;1;0;FLOAT2;0,0;False;1;FLOAT2;0
  93. Node;AmplifyShaderEditor.GetLocalVarNode;131;-2359.23,-302.2035;Inherit;False;130;UV;1;0;OBJECT;;False;1;FLOAT2;0
  94. Node;AmplifyShaderEditor.ComponentMaskNode;95;-2024.212,-406.5013;Inherit;False;True;False;True;True;1;0;FLOAT2;0,0;False;1;FLOAT;0
  95. Node;AmplifyShaderEditor.ComponentMaskNode;96;-2024.212,-326.5013;Inherit;False;False;True;True;True;1;0;FLOAT2;0,0;False;1;FLOAT;0
  96. Node;AmplifyShaderEditor.ATan2OpNode;97;-1779.673,-407.5227;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  97. Node;AmplifyShaderEditor.TauNode;98;-1774.861,-293.0062;Inherit;False;0;1;FLOAT;0
  98. Node;AmplifyShaderEditor.SimpleDivideOpNode;99;-1616.042,-404.345;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  99. Node;AmplifyShaderEditor.FractNode;102;-1432.212,-326.5013;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  100. Node;AmplifyShaderEditor.LengthOpNode;100;-2017.171,-144.5228;Inherit;True;1;0;FLOAT2;0,0;False;1;FLOAT;0
  101. Node;AmplifyShaderEditor.Vector4Node;101;-1295.636,-360.462;Inherit;False;Property;_MainTexOffest;MainTexOffest;3;0;Create;True;0;0;False;0;False;1,1,0,1;4,1,0,1;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  102. Node;AmplifyShaderEditor.DynamicAppendNode;103;-1301.207,-165.2091;Inherit;True;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  103. Node;AmplifyShaderEditor.DynamicAppendNode;121;-822.934,-72.32878;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  104. Node;AmplifyShaderEditor.DynamicAppendNode;122;-822.934,174.0634;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  105. Node;AmplifyShaderEditor.PannerNode;123;-600.8199,-92.34578;Inherit;True;3;0;FLOAT2;0,0;False;2;FLOAT2;1,0;False;1;FLOAT;1;False;1;FLOAT2;0
  106. Node;AmplifyShaderEditor.PannerNode;124;-615.3212,174.8307;Inherit;True;3;0;FLOAT2;0,0;False;2;FLOAT2;0,1;False;1;FLOAT;1;False;1;FLOAT2;0
  107. Node;AmplifyShaderEditor.ComponentMaskNode;125;-305.8657,156.704;Inherit;False;False;True;True;True;1;0;FLOAT2;0,0;False;1;FLOAT;0
  108. Node;AmplifyShaderEditor.ComponentMaskNode;126;-300.448,-73.68534;Inherit;False;True;False;True;True;1;0;FLOAT2;0,0;False;1;FLOAT;0
  109. Node;AmplifyShaderEditor.DynamicAppendNode;128;-58.32109,-152.5939;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  110. Node;AmplifyShaderEditor.DynamicAppendNode;129;-54.55693,-30.34258;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  111. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;127;125.6076,-143.1645;Inherit;True;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
  112. Node;AmplifyShaderEditor.LengthOpNode;13;-406.6232,448.4684;Inherit;True;1;0;FLOAT2;0,0;False;1;FLOAT;0
  113. Node;AmplifyShaderEditor.SimpleAddOpNode;40;695.8636,79.48013;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT;0;False;1;FLOAT2;0
  114. Node;AmplifyShaderEditor.SamplerNode;7;1596.884,74.84749;Inherit;True;Property;_MainTex;MainTex;1;0;Create;True;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
  115. Node;AmplifyShaderEditor.VertexColorNode;34;1452.378,410.8171;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  116. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;36;2014.712,140.1688;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
  117. Node;AmplifyShaderEditor.RGBToHSVNode;147;2308.7,89.41498;Inherit;False;1;0;FLOAT3;0,0,0;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3
  118. Node;AmplifyShaderEditor.RangedFloatNode;150;2234.7,-78.58502;Inherit;False;Property;_Hue;Hue;9;0;Create;True;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
  119. Node;AmplifyShaderEditor.RangedFloatNode;15;-511.9467,696.1497;Inherit;False;Property;_Max;Max;2;0;Create;True;0;0;False;0;False;0.9999;0.598;0;0.9999;0;1;FLOAT;0
  120. Node;AmplifyShaderEditor.SimpleAddOpNode;149;2578.7,-5.585022;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  121. Node;AmplifyShaderEditor.SmoothstepOpNode;14;21.10172,575.38;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;1;False;2;FLOAT;1;False;1;FLOAT;0
  122. Node;AmplifyShaderEditor.RangedFloatNode;140;1335.161,-682.9677;Inherit;False;Property;_ZTest2;ZTest;8;1;[Enum];Create;True;0;1;UnityEngine.Rendering.CompareFunction;True;0;False;4;4;0;0;0;1;FLOAT;0
  123. Node;AmplifyShaderEditor.RangedFloatNode;139;1495.161,-682.9677;Inherit;False;Property;_CullMode2;CullMode;6;1;[Enum];Create;True;0;1;UnityEngine.Rendering.CullMode;True;0;False;0;2;0;0;0;1;FLOAT;0
  124. Node;AmplifyShaderEditor.HSVToRGBNode;148;2727.7,98.41498;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3
  125. Node;AmplifyShaderEditor.RangedFloatNode;141;1159.16,-682.9677;Inherit;False;Property;_ZWrite2;ZWrite;7;1;[Enum];Create;True;2;Off;0;On;1;0;True;0;False;0;0;0;0;0;1;FLOAT;0
  126. Node;AmplifyShaderEditor.RangedFloatNode;135;1703.161,-522.9676;Inherit;False;Property;_Dst2;Dst;5;1;[Enum];Create;True;0;1;UnityEngine.Rendering.BlendMode;True;0;False;10;10;0;0;0;1;FLOAT;0
  127. Node;AmplifyShaderEditor.RegisterLocalVarNode;137;1959.16,-666.9677;Inherit;False;Src;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
  128. Node;AmplifyShaderEditor.RegisterLocalVarNode;138;1975.16,-506.9676;Inherit;False;Dst;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
  129. Node;AmplifyShaderEditor.RangedFloatNode;136;1703.161,-682.9677;Inherit;False;Property;_Src2;Src;4;1;[Enum];Create;True;0;1;UnityEngine.Rendering.BlendMode;True;0;False;5;5;0;0;0;1;FLOAT;0
  130. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;35;1846.466,542.716;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  131. Node;AmplifyShaderEditor.StandardSurfaceOutputNode;20;3096.786,-7.961101;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;RO/RO_Effect_JZB_02;False;False;False;False;True;True;True;True;True;False;True;True;False;False;False;False;False;False;False;False;False;Back;2;True;141;0;True;140;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;True;136;10;True;135;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;True;139;-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
  132. WireConnection;12;0;9;0
  133. WireConnection;11;0;12;0
  134. WireConnection;11;1;10;0
  135. WireConnection;130;0;11;0
  136. WireConnection;95;0;131;0
  137. WireConnection;96;0;131;0
  138. WireConnection;97;0;95;0
  139. WireConnection;97;1;96;0
  140. WireConnection;99;0;97;0
  141. WireConnection;99;1;98;0
  142. WireConnection;102;0;99;0
  143. WireConnection;100;0;131;0
  144. WireConnection;103;0;102;0
  145. WireConnection;103;1;100;0
  146. WireConnection;121;0;101;3
  147. WireConnection;122;1;101;4
  148. WireConnection;123;0;103;0
  149. WireConnection;123;2;121;0
  150. WireConnection;124;0;103;0
  151. WireConnection;124;2;122;0
  152. WireConnection;125;0;124;0
  153. WireConnection;126;0;123;0
  154. WireConnection;128;0;101;1
  155. WireConnection;128;1;101;2
  156. WireConnection;129;0;126;0
  157. WireConnection;129;1;125;0
  158. WireConnection;127;0;128;0
  159. WireConnection;127;1;129;0
  160. WireConnection;13;0;130;0
  161. WireConnection;40;0;127;0
  162. WireConnection;40;1;13;0
  163. WireConnection;7;1;40;0
  164. WireConnection;36;0;7;0
  165. WireConnection;36;1;34;0
  166. WireConnection;147;0;36;0
  167. WireConnection;149;0;150;0
  168. WireConnection;149;1;147;1
  169. WireConnection;14;0;13;0
  170. WireConnection;14;2;15;0
  171. WireConnection;148;0;149;0
  172. WireConnection;148;1;147;2
  173. WireConnection;148;2;147;3
  174. WireConnection;137;0;136;0
  175. WireConnection;138;0;135;0
  176. WireConnection;35;0;34;4
  177. WireConnection;35;1;14;0
  178. WireConnection;20;2;148;0
  179. WireConnection;20;9;35;0
  180. ASEEND*/
  181. //CHKSM=0395431A83E82EA364783B965273104649B44141