RO_Effect_UVNQ_01.shader 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // Made with Amplify Shader Editor
  2. // Available at the Unity Asset Store - http://u3d.as/y3X
  3. Shader "RO/RO_Effect_UVNQ_01"
  4. {
  5. Properties
  6. {
  7. _MainTex("MainTex", 2D) = "white" {}
  8. _UVTex("UVTex", 2D) = "white" {}
  9. _UVSTR("UVSTR", Float) = 0
  10. _UVspeed("UVspeed", Vector) = (0,0,0,0)
  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. ZWrite Off
  19. Blend SrcAlpha OneMinusSrcAlpha
  20. CGPROGRAM
  21. #include "UnityShaderVariables.cginc"
  22. #pragma target 3.0
  23. #pragma surface surf Unlit keepalpha noshadow
  24. struct Input
  25. {
  26. float2 uv_texcoord;
  27. float4 vertexColor : COLOR;
  28. };
  29. uniform sampler2D _MainTex;
  30. uniform float4 _UVspeed;
  31. uniform float4 _MainTex_ST;
  32. uniform sampler2D _UVTex;
  33. uniform float4 _UVTex_ST;
  34. uniform float _UVSTR;
  35. inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
  36. {
  37. return half4 ( 0, 0, 0, s.Alpha );
  38. }
  39. void surf( Input i , inout SurfaceOutput o )
  40. {
  41. float2 appendResult16 = (float2(_UVspeed.x , _UVspeed.y));
  42. float2 uv0_MainTex = i.uv_texcoord * _MainTex_ST.xy + _MainTex_ST.zw;
  43. float2 panner15 = ( 1.0 * _Time.y * appendResult16 + uv0_MainTex);
  44. float2 appendResult17 = (float2(_UVspeed.z , _UVspeed.w));
  45. float2 uv0_UVTex = i.uv_texcoord * _UVTex_ST.xy + _UVTex_ST.zw;
  46. float2 panner9 = ( 1.0 * _Time.y * appendResult17 + uv0_UVTex);
  47. float4 tex2DNode2 = tex2D( _UVTex, panner9 );
  48. float4 tex2DNode1 = tex2D( _MainTex, ( panner15 + ( min( tex2DNode2.r , tex2DNode2.a ) * _UVSTR ) ) );
  49. o.Emission = ( tex2DNode1 * i.vertexColor ).rgb;
  50. o.Alpha = ( tex2DNode1.a * i.vertexColor.a );
  51. }
  52. ENDCG
  53. }
  54. // CustomEditor "ASEMaterialInspector"
  55. }
  56. /*ASEBEGIN
  57. Version=17500
  58. 2221;1;1319;1010;1562.19;37.97552;1;True;False
  59. Node;AmplifyShaderEditor.Vector4Node;14;-2330.307,188.0424;Inherit;False;Property;_UVspeed;UVspeed;4;0;Create;True;0;0;False;0;0,0,0,0;0,0,0,0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  60. Node;AmplifyShaderEditor.DynamicAppendNode;17;-1801.463,419.0294;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  61. Node;AmplifyShaderEditor.TextureCoordinatesNode;8;-1916.242,278.3659;Inherit;False;0;2;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
  62. Node;AmplifyShaderEditor.PannerNode;9;-1558.242,285.3659;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0;False;1;FLOAT;1;False;1;FLOAT2;0
  63. Node;AmplifyShaderEditor.WireNode;20;-1792.338,218.1932;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  64. Node;AmplifyShaderEditor.WireNode;19;-1795.757,191.5186;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  65. Node;AmplifyShaderEditor.SamplerNode;2;-1279.242,257.3659;Inherit;True;Property;_UVTex;UVTex;2;0;Create;True;0;0;False;0;-1;None;None;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
  66. Node;AmplifyShaderEditor.SimpleMinOpNode;18;-972.7349,284.938;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  67. Node;AmplifyShaderEditor.RangedFloatNode;7;-1043.242,501.3659;Inherit;False;Property;_UVSTR;UVSTR;3;0;Create;True;0;0;False;0;0;0;0;0;0;1;FLOAT;0
  68. Node;AmplifyShaderEditor.TextureCoordinatesNode;3;-1285.425,39.65032;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
  69. Node;AmplifyShaderEditor.DynamicAppendNode;16;-1195.496,160.8349;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  70. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;6;-835.1912,284.3914;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  71. Node;AmplifyShaderEditor.PannerNode;15;-935.6769,43.8144;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0;False;1;FLOAT;1;False;1;FLOAT2;0
  72. Node;AmplifyShaderEditor.SimpleAddOpNode;4;-644.2419,45.36594;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT;0;False;1;FLOAT2;0
  73. Node;AmplifyShaderEditor.VertexColorNode;11;-404.7154,228.317;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  74. Node;AmplifyShaderEditor.SamplerNode;1;-513.4481,16.57207;Inherit;True;Property;_MainTex;MainTex;1;0;Create;True;0;0;False;0;-1;None;None;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
  75. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;12;-131.006,19.58164;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
  76. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;13;-138.6191,295.6731;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  77. Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;109.0059,42.31994;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;RO_Effect_UVNQ_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;0;False;-1;False;0;False;-1;0;False;-1;False;0;Custom;0.5;True;False;0;False;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;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
  78. WireConnection;17;0;14;3
  79. WireConnection;17;1;14;4
  80. WireConnection;9;0;8;0
  81. WireConnection;9;2;17;0
  82. WireConnection;20;0;14;2
  83. WireConnection;19;0;14;1
  84. WireConnection;2;1;9;0
  85. WireConnection;18;0;2;1
  86. WireConnection;18;1;2;4
  87. WireConnection;16;0;19;0
  88. WireConnection;16;1;20;0
  89. WireConnection;6;0;18;0
  90. WireConnection;6;1;7;0
  91. WireConnection;15;0;3;0
  92. WireConnection;15;2;16;0
  93. WireConnection;4;0;15;0
  94. WireConnection;4;1;6;0
  95. WireConnection;1;1;4;0
  96. WireConnection;12;0;1;0
  97. WireConnection;12;1;11;0
  98. WireConnection;13;0;1;4
  99. WireConnection;13;1;11;4
  100. WireConnection;0;2;12;0
  101. WireConnection;0;9;13;0
  102. ASEEND*/
  103. //CHKSM=58174A1B3F71B3BD47F11DA577E8257DA7768A8E