RO_Effect_RNQ_03.shader 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. // Made with Amplify Shader Editor
  2. // Available at the Unity Asset Store - http://u3d.as/y3X
  3. Shader "RO/RO_Effect_RNQ_03"
  4. {
  5. Properties
  6. {
  7. _Speed("Speed", Range( 0 , 100)) = 3.2
  8. _Offset("Offset", Range( 0 , 1)) = 0.5781077
  9. _Str("Str", Float) = 0
  10. _1("1", Float) = 0.01
  11. [HideInInspector] _texcoord( "", 2D ) = "white" {}
  12. [HideInInspector] __dirty( "", Int ) = 1
  13. }
  14. SubShader
  15. {
  16. Tags{ "RenderType" = "Custom" "Queue" = "Transparent+0" "IsEmissive" = "true" }
  17. Cull Back
  18. Blend SrcAlpha OneMinusSrcAlpha
  19. GrabPass{ }
  20. CGPROGRAM
  21. #pragma target 3.0
  22. #if defined(UNITY_STEREO_INSTANCING_ENABLED) || defined(UNITY_STEREO_MULTIVIEW_ENABLED)
  23. #define ASE_DECLARE_SCREENSPACE_TEXTURE(tex) UNITY_DECLARE_SCREENSPACE_TEXTURE(tex);
  24. #else
  25. #define ASE_DECLARE_SCREENSPACE_TEXTURE(tex) UNITY_DECLARE_SCREENSPACE_TEXTURE(tex)
  26. #endif
  27. #pragma surface surf Unlit keepalpha noshadow
  28. struct Input
  29. {
  30. float4 screenPos;
  31. float2 uv_texcoord;
  32. };
  33. ASE_DECLARE_SCREENSPACE_TEXTURE( _GrabTexture )
  34. uniform float _Offset;
  35. uniform float _Speed;
  36. uniform float _Str;
  37. uniform float _1;
  38. inline float4 ASE_ComputeGrabScreenPos( float4 pos )
  39. {
  40. #if UNITY_UV_STARTS_AT_TOP
  41. float scale = -1.0;
  42. #else
  43. float scale = 1.0;
  44. #endif
  45. float4 o = pos;
  46. o.y = pos.w * 0.5f;
  47. o.y = ( pos.y - o.y ) * _ProjectionParams.x * scale + o.y;
  48. return o;
  49. }
  50. inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
  51. {
  52. return half4 ( 0, 0, 0, s.Alpha );
  53. }
  54. void surf( Input i , inout SurfaceOutput o )
  55. {
  56. float4 ase_screenPos = float4( i.screenPos.xyz , i.screenPos.w + 0.00000000001 );
  57. float4 ase_grabScreenPos = ASE_ComputeGrabScreenPos( ase_screenPos );
  58. float4 ase_grabScreenPosNorm = ase_grabScreenPos / ase_grabScreenPos.w;
  59. float2 temp_cast_0 = (_Speed).xx;
  60. float2 appendResult65 = (float2(-0.5 , -0.5));
  61. float2 uv_TexCoord1 = i.uv_texcoord * temp_cast_0 + ( _Speed * appendResult65 );
  62. float smoothstepResult67 = smoothstep( _Offset , 1.0 , distance( uv_TexCoord1 , float2( 0,0 ) ));
  63. float temp_output_69_0 = ( smoothstepResult67 * ( 1.0 - smoothstepResult67 ) * _Str );
  64. float2 temp_cast_1 = (_Speed).xx;
  65. float fffff79 = ( 1.0 - _Offset );
  66. float temp_output_51_0 = ( -0.5 + ( ( 1.0 / _Speed ) * _1 * fffff79 ) );
  67. float2 appendResult48 = (float2(temp_output_51_0 , -0.5));
  68. float2 uv_TexCoord73 = i.uv_texcoord * temp_cast_1 + ( _Speed * appendResult48 );
  69. float smoothstepResult20 = smoothstep( _Offset , 1.0 , distance( uv_TexCoord73 , float2( 0,0 ) ));
  70. float3 appendResult58 = (float3(1.0 , 0.0 , ( temp_output_69_0 - ( smoothstepResult20 * ( 1.0 - smoothstepResult20 ) * _Str ) )));
  71. float2 temp_cast_2 = (_Speed).xx;
  72. float2 appendResult49 = (float2(-0.5 , temp_output_51_0));
  73. float2 uv_TexCoord74 = i.uv_texcoord * temp_cast_2 + ( _Speed * appendResult49 );
  74. float smoothstepResult43 = smoothstep( _Offset , 1.0 , distance( uv_TexCoord74 , float2( 0,0 ) ));
  75. float3 appendResult59 = (float3(0.0 , 1.0 , ( temp_output_69_0 - ( smoothstepResult43 * ( 1.0 - smoothstepResult43 ) * _Str ) )));
  76. float4 screenColor34 = UNITY_SAMPLE_SCREENSPACE_TEXTURE(_GrabTexture,( ase_grabScreenPosNorm + float4( cross( appendResult58 , appendResult59 ) , 0.0 ) ).xy);
  77. o.Emission = screenColor34.rgb;
  78. o.Alpha = 1;
  79. }
  80. ENDCG
  81. }
  82. CustomEditor "ASEMaterialInspector"
  83. }
  84. /*ASEBEGIN
  85. Version=18500
  86. 2005;7;1650;1004;2328.322;411.4687;1;True;True
  87. Node;AmplifyShaderEditor.RangedFloatNode;21;-589.6324,255.1956;Inherit;False;Property;_Offset;Offset;2;0;Create;True;0;0;False;0;False;0.5781077;0.373;0;1;0;1;FLOAT;0
  88. Node;AmplifyShaderEditor.OneMinusNode;81;-245.7189,258.3738;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  89. Node;AmplifyShaderEditor.RangedFloatNode;13;-1795.578,-236.9289;Inherit;False;Property;_Speed;Speed;1;0;Create;True;0;0;False;0;False;3.2;5.4;0;100;0;1;FLOAT;0
  90. Node;AmplifyShaderEditor.RegisterLocalVarNode;79;-109.9094,227.5732;Inherit;False;fffff;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
  91. Node;AmplifyShaderEditor.SimpleDivideOpNode;75;-1461.239,-64.45374;Inherit;False;2;0;FLOAT;1;False;1;FLOAT;0;False;1;FLOAT;0
  92. Node;AmplifyShaderEditor.RangedFloatNode;50;-1737.266,324.2023;Inherit;False;Property;_1;1;4;0;Create;True;0;0;False;0;False;0.01;0.01;0;0;0;1;FLOAT;0
  93. Node;AmplifyShaderEditor.GetLocalVarNode;80;-1635.909,475.5732;Inherit;False;79;fffff;1;0;OBJECT;;False;1;FLOAT;0
  94. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;76;-1434.239,287.5463;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
  95. Node;AmplifyShaderEditor.RangedFloatNode;47;-1560.878,173.6387;Inherit;False;Constant;_Float1;Float 1;3;0;Create;True;0;0;False;0;False;-0.5;0;0;0;0;1;FLOAT;0
  96. Node;AmplifyShaderEditor.SimpleAddOpNode;51;-1296.063,248.7188;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  97. Node;AmplifyShaderEditor.DynamicAppendNode;49;-1113.331,345.8481;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  98. Node;AmplifyShaderEditor.DynamicAppendNode;65;-1176.494,-37.92136;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  99. Node;AmplifyShaderEditor.DynamicAppendNode;48;-1138.793,175.8938;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  100. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;15;-951.1259,139.9887;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
  101. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;66;-998.4551,-53.33087;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
  102. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;39;-916.9218,370.2143;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
  103. Node;AmplifyShaderEditor.TextureCoordinatesNode;74;-741.2618,375.3125;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
  104. Node;AmplifyShaderEditor.TextureCoordinatesNode;1;-859.7894,-208.0433;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
  105. Node;AmplifyShaderEditor.TextureCoordinatesNode;73;-738.2618,54.3125;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
  106. Node;AmplifyShaderEditor.DistanceOpNode;62;-452.5575,-237.8243;Inherit;True;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT;0
  107. Node;AmplifyShaderEditor.DistanceOpNode;3;-458.2534,0.2597046;Inherit;True;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT;0
  108. Node;AmplifyShaderEditor.DistanceOpNode;42;-441.0262,400.0504;Inherit;True;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT;0
  109. Node;AmplifyShaderEditor.SmoothstepOpNode;20;-142.4214,40.26277;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;1;FLOAT;0
  110. Node;AmplifyShaderEditor.SmoothstepOpNode;67;-160.466,-228.1805;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;1;FLOAT;0
  111. Node;AmplifyShaderEditor.SmoothstepOpNode;43;-142.8154,414.501;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;1;FLOAT;0
  112. Node;AmplifyShaderEditor.OneMinusNode;44;164.5911,594.4781;Inherit;True;1;0;FLOAT;0;False;1;FLOAT;0
  113. Node;AmplifyShaderEditor.OneMinusNode;68;85.99695,-89.54529;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  114. Node;AmplifyShaderEditor.RangedFloatNode;82;97.00881,354.9985;Inherit;False;Property;_Str;Str;3;0;Create;True;0;0;False;0;False;0;1;0;0;0;1;FLOAT;0
  115. Node;AmplifyShaderEditor.OneMinusNode;18;134.7259,123.7019;Inherit;True;1;0;FLOAT;0;False;1;FLOAT;0
  116. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;19;406.8985,47.48315;Inherit;True;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
  117. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;45;435.9018,393.048;Inherit;True;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
  118. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;69;407.2787,-224.8798;Inherit;True;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
  119. Node;AmplifyShaderEditor.SimpleSubtractOpNode;53;754.7963,-57.30751;Inherit;True;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  120. Node;AmplifyShaderEditor.SimpleSubtractOpNode;55;720.3118,308.0491;Inherit;True;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  121. Node;AmplifyShaderEditor.DynamicAppendNode;58;1071.317,128.7187;Inherit;True;FLOAT3;4;0;FLOAT;1;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT3;0
  122. Node;AmplifyShaderEditor.DynamicAppendNode;59;1093.024,361.9198;Inherit;True;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;1;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT3;0
  123. Node;AmplifyShaderEditor.GrabScreenPosition;35;1701.423,-318.494;Inherit;False;0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  124. Node;AmplifyShaderEditor.CrossProductOpNode;71;1471.249,187.7253;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0
  125. Node;AmplifyShaderEditor.SimpleAddOpNode;36;2026.028,-103.9768;Inherit;True;2;2;0;FLOAT4;0,0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT4;0
  126. Node;AmplifyShaderEditor.ScreenColorNode;34;2275.532,-102.2507;Inherit;False;Global;_GrabScreen0;Grab Screen 0;1;0;Create;True;0;0;False;0;False;Object;-1;False;False;1;0;FLOAT2;0,0;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  127. Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;2502.307,-147.8704;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;RO/RO_Effect_RNQ_03;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;Back;0;False;-1;0;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;1;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
  128. WireConnection;81;0;21;0
  129. WireConnection;79;0;81;0
  130. WireConnection;75;1;13;0
  131. WireConnection;76;0;75;0
  132. WireConnection;76;1;50;0
  133. WireConnection;76;2;80;0
  134. WireConnection;51;0;47;0
  135. WireConnection;51;1;76;0
  136. WireConnection;49;0;47;0
  137. WireConnection;49;1;51;0
  138. WireConnection;65;0;47;0
  139. WireConnection;65;1;47;0
  140. WireConnection;48;0;51;0
  141. WireConnection;48;1;47;0
  142. WireConnection;15;0;13;0
  143. WireConnection;15;1;48;0
  144. WireConnection;66;0;13;0
  145. WireConnection;66;1;65;0
  146. WireConnection;39;0;13;0
  147. WireConnection;39;1;49;0
  148. WireConnection;74;0;13;0
  149. WireConnection;74;1;39;0
  150. WireConnection;1;0;13;0
  151. WireConnection;1;1;66;0
  152. WireConnection;73;0;13;0
  153. WireConnection;73;1;15;0
  154. WireConnection;62;0;1;0
  155. WireConnection;3;0;73;0
  156. WireConnection;42;0;74;0
  157. WireConnection;20;0;3;0
  158. WireConnection;20;1;21;0
  159. WireConnection;67;0;62;0
  160. WireConnection;67;1;21;0
  161. WireConnection;43;0;42;0
  162. WireConnection;43;1;21;0
  163. WireConnection;44;0;43;0
  164. WireConnection;68;0;67;0
  165. WireConnection;18;0;20;0
  166. WireConnection;19;0;20;0
  167. WireConnection;19;1;18;0
  168. WireConnection;19;2;82;0
  169. WireConnection;45;0;43;0
  170. WireConnection;45;1;44;0
  171. WireConnection;45;2;82;0
  172. WireConnection;69;0;67;0
  173. WireConnection;69;1;68;0
  174. WireConnection;69;2;82;0
  175. WireConnection;53;0;69;0
  176. WireConnection;53;1;19;0
  177. WireConnection;55;0;69;0
  178. WireConnection;55;1;45;0
  179. WireConnection;58;2;53;0
  180. WireConnection;59;2;55;0
  181. WireConnection;71;0;58;0
  182. WireConnection;71;1;59;0
  183. WireConnection;36;0;35;0
  184. WireConnection;36;1;71;0
  185. WireConnection;34;0;36;0
  186. WireConnection;0;2;34;0
  187. ASEEND*/
  188. //CHKSM=ADF862E9A73359D6A17CE883FCAC13B677DF36D4