108 lines
6.5 KiB
Plaintext
108 lines
6.5 KiB
Plaintext
// Made with Amplify Shader Editor
|
|
// Available at the Unity Asset Store - http://u3d.as/y3X
|
|
Shader "RO/RO_Effect_UVNQ_01"
|
|
{
|
|
Properties
|
|
{
|
|
_MainTex("MainTex", 2D) = "white" {}
|
|
_UVTex("UVTex", 2D) = "white" {}
|
|
_UVSTR("UVSTR", Float) = 0
|
|
_UVspeed("UVspeed", Vector) = (0,0,0,0)
|
|
[HideInInspector] _texcoord( "", 2D ) = "white" {}
|
|
[HideInInspector] __dirty( "", Int ) = 1
|
|
}
|
|
|
|
SubShader
|
|
{
|
|
Tags{ "RenderType" = "Custom" "Queue" = "Transparent+0" "IsEmissive" = "true" }
|
|
Cull Back
|
|
ZWrite Off
|
|
Blend SrcAlpha OneMinusSrcAlpha
|
|
CGPROGRAM
|
|
#include "UnityShaderVariables.cginc"
|
|
#pragma target 3.0
|
|
#pragma surface surf Unlit keepalpha noshadow
|
|
struct Input
|
|
{
|
|
float2 uv_texcoord;
|
|
float4 vertexColor : COLOR;
|
|
};
|
|
|
|
uniform sampler2D _MainTex;
|
|
uniform float4 _UVspeed;
|
|
uniform float4 _MainTex_ST;
|
|
uniform sampler2D _UVTex;
|
|
uniform float4 _UVTex_ST;
|
|
uniform float _UVSTR;
|
|
|
|
inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
|
|
{
|
|
return half4 ( 0, 0, 0, s.Alpha );
|
|
}
|
|
|
|
void surf( Input i , inout SurfaceOutput o )
|
|
{
|
|
float2 appendResult16 = (float2(_UVspeed.x , _UVspeed.y));
|
|
float2 uv0_MainTex = i.uv_texcoord * _MainTex_ST.xy + _MainTex_ST.zw;
|
|
float2 panner15 = ( 1.0 * _Time.y * appendResult16 + uv0_MainTex);
|
|
float2 appendResult17 = (float2(_UVspeed.z , _UVspeed.w));
|
|
float2 uv0_UVTex = i.uv_texcoord * _UVTex_ST.xy + _UVTex_ST.zw;
|
|
float2 panner9 = ( 1.0 * _Time.y * appendResult17 + uv0_UVTex);
|
|
float4 tex2DNode2 = tex2D( _UVTex, panner9 );
|
|
float4 tex2DNode1 = tex2D( _MainTex, ( panner15 + ( min( tex2DNode2.r , tex2DNode2.a ) * _UVSTR ) ) );
|
|
o.Emission = ( tex2DNode1 * i.vertexColor ).rgb;
|
|
o.Alpha = ( tex2DNode1.a * i.vertexColor.a );
|
|
}
|
|
|
|
ENDCG
|
|
}
|
|
// CustomEditor "ASEMaterialInspector"
|
|
}
|
|
/*ASEBEGIN
|
|
Version=17500
|
|
2221;1;1319;1010;1562.19;37.97552;1;True;False
|
|
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
|
|
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
|
|
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
|
|
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
|
|
Node;AmplifyShaderEditor.WireNode;20;-1792.338,218.1932;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
|
|
Node;AmplifyShaderEditor.WireNode;19;-1795.757,191.5186;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
|
|
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
|
|
Node;AmplifyShaderEditor.SimpleMinOpNode;18;-972.7349,284.938;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
|
|
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
|
|
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
|
|
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
|
|
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;6;-835.1912,284.3914;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
|
|
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
|
|
Node;AmplifyShaderEditor.SimpleAddOpNode;4;-644.2419,45.36594;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT;0;False;1;FLOAT2;0
|
|
Node;AmplifyShaderEditor.VertexColorNode;11;-404.7154,228.317;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
|
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
|
|
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
|
|
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;13;-138.6191,295.6731;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
|
|
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
|
|
WireConnection;17;0;14;3
|
|
WireConnection;17;1;14;4
|
|
WireConnection;9;0;8;0
|
|
WireConnection;9;2;17;0
|
|
WireConnection;20;0;14;2
|
|
WireConnection;19;0;14;1
|
|
WireConnection;2;1;9;0
|
|
WireConnection;18;0;2;1
|
|
WireConnection;18;1;2;4
|
|
WireConnection;16;0;19;0
|
|
WireConnection;16;1;20;0
|
|
WireConnection;6;0;18;0
|
|
WireConnection;6;1;7;0
|
|
WireConnection;15;0;3;0
|
|
WireConnection;15;2;16;0
|
|
WireConnection;4;0;15;0
|
|
WireConnection;4;1;6;0
|
|
WireConnection;1;1;4;0
|
|
WireConnection;12;0;1;0
|
|
WireConnection;12;1;11;0
|
|
WireConnection;13;0;1;4
|
|
WireConnection;13;1;11;4
|
|
WireConnection;0;2;12;0
|
|
WireConnection;0;9;13;0
|
|
ASEEND*/
|
|
//CHKSM=58174A1B3F71B3BD47F11DA577E8257DA7768A8E |