| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- // Made with Amplify Shader Editor
- // Available at the Unity Asset Store - http://u3d.as/y3X
- Shader "GG/DingDianPY"
- {
- Properties
- {
- [HDR]_Maincolor("Maincolor", Color) = (1,1,1,1)
- _MianTex("MianTex", 2D) = "white" {}
- _MianUV("MianUV", Vector) = (0,0,0,0)
- _X("X", Float) = 1
- _Y("Y", Float) = 1
- _TimeScale("TimeScale", Float) = 1
- _OffsetScale("OffsetScale", Float) = 1
- }
-
- SubShader
- {
-
-
- Tags { "RenderType"="Transparent" "Queue"="Transparent" }
- LOD 100
- CGINCLUDE
- #pragma target 3.0
- ENDCG
- Blend SrcAlpha OneMinusSrcAlpha
- AlphaToMask Off
- Cull Off
- ColorMask RGBA
- ZWrite On
- ZTest LEqual
- Offset 0 , 0
-
-
-
- Pass
- {
- Name "Unlit"
- Tags { "LightMode"="ForwardBase" }
- CGPROGRAM
-
- #ifndef UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX
- //only defining to not throw compilation error over Unity 5.5
- #define UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input)
- #endif
- #pragma vertex vert
- #pragma fragment frag
- #pragma multi_compile_instancing
- #include "UnityCG.cginc"
- #include "UnityShaderVariables.cginc"
- #define ASE_NEEDS_VERT_POSITION
- #define ASE_NEEDS_VERT_COLOR
- struct appdata
- {
- float4 vertex : POSITION;
- float4 color : COLOR;
- float4 ase_texcoord : TEXCOORD0;
- UNITY_VERTEX_INPUT_INSTANCE_ID
- };
-
- struct v2f
- {
- float4 vertex : SV_POSITION;
- #ifdef ASE_NEEDS_FRAG_WORLD_POSITION
- float3 worldPos : TEXCOORD0;
- #endif
- float4 ase_texcoord1 : TEXCOORD1;
- UNITY_VERTEX_INPUT_INSTANCE_ID
- UNITY_VERTEX_OUTPUT_STEREO
- };
- uniform float _X;
- uniform float _Y;
- uniform float _TimeScale;
- uniform float _OffsetScale;
- uniform float4 _Maincolor;
- uniform sampler2D _MianTex;
- uniform float2 _MianUV;
- uniform float4 _MianTex_ST;
-
- v2f vert ( appdata v )
- {
- v2f o;
- UNITY_SETUP_INSTANCE_ID(v);
- UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
- UNITY_TRANSFER_INSTANCE_ID(v, o);
- float mulTime15 = _Time.y * _TimeScale;
- float3 appendResult4 = (float3(0.0 , ( sin( ( ( _X * v.vertex.xyz.x ) + ( v.vertex.xyz.y * _Y ) + mulTime15 ) ) * v.color.a * _OffsetScale ) , 0.0));
-
- o.ase_texcoord1.xy = v.ase_texcoord.xy;
-
- //setting value to unused interpolator channels and avoid initialization warnings
- o.ase_texcoord1.zw = 0;
- float3 vertexValue = float3(0, 0, 0);
- #if ASE_ABSOLUTE_VERTEX_POS
- vertexValue = v.vertex.xyz;
- #endif
- vertexValue = appendResult4;
- #if ASE_ABSOLUTE_VERTEX_POS
- v.vertex.xyz = vertexValue;
- #else
- v.vertex.xyz += vertexValue;
- #endif
- o.vertex = UnityObjectToClipPos(v.vertex);
- #ifdef ASE_NEEDS_FRAG_WORLD_POSITION
- o.worldPos = mul(unity_ObjectToWorld, v.vertex).xyz;
- #endif
- return o;
- }
-
- fixed4 frag (v2f i ) : SV_Target
- {
- UNITY_SETUP_INSTANCE_ID(i);
- UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i);
- fixed4 finalColor;
- #ifdef ASE_NEEDS_FRAG_WORLD_POSITION
- float3 WorldPosition = i.worldPos;
- #endif
- float2 uv_MianTex = i.ase_texcoord1.xy * _MianTex_ST.xy + _MianTex_ST.zw;
- float2 panner29 = ( 1.0 * _Time.y * _MianUV + uv_MianTex);
-
-
- finalColor = ( _Maincolor * tex2D( _MianTex, panner29 ) );
- return finalColor;
- }
- ENDCG
- }
- }
- CustomEditor "ASEMaterialInspector"
-
-
- }
- /*ASEBEGIN
- Version=18500
- 1913;31;1920;450;1570.223;452.8971;1.3;True;False
- Node;AmplifyShaderEditor.RangedFloatNode;8;-1310.645,35.81059;Inherit;False;Property;_X;X;3;0;Create;True;0;0;False;0;False;1;0;0;0;0;1;FLOAT;0
- Node;AmplifyShaderEditor.RangedFloatNode;16;-1309.998,430.9819;Inherit;False;Property;_TimeScale;TimeScale;5;0;Create;True;0;0;False;0;False;1;0;0;0;0;1;FLOAT;0
- Node;AmplifyShaderEditor.RangedFloatNode;11;-1329.53,307.2205;Inherit;False;Property;_Y;Y;4;0;Create;True;0;0;False;0;False;1;0;0;0;0;1;FLOAT;0
- Node;AmplifyShaderEditor.PosVertexDataNode;7;-1327.812,140.1923;Inherit;False;0;0;5;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
- Node;AmplifyShaderEditor.SimpleMultiplyOpNode;10;-1056.476,264.8635;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
- Node;AmplifyShaderEditor.SimpleMultiplyOpNode;9;-1042.593,88.11151;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
- Node;AmplifyShaderEditor.SimpleTimeNode;15;-1027.998,427.9819;Inherit;False;1;0;FLOAT;1;False;1;FLOAT;0
- Node;AmplifyShaderEditor.Vector2Node;26;-1158.004,-153.2171;Inherit;False;Property;_MianUV;MianUV;2;0;Create;True;0;0;False;0;False;0,0;0,0;0;3;FLOAT2;0;FLOAT;1;FLOAT;2
- Node;AmplifyShaderEditor.SimpleAddOpNode;12;-827.4772,185.8635;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
- Node;AmplifyShaderEditor.TextureCoordinatesNode;28;-1181.382,-305.9098;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.PannerNode;29;-910.2943,-140.3053;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0;False;1;FLOAT;1;False;1;FLOAT2;0
- Node;AmplifyShaderEditor.SinOpNode;17;-602.408,209.697;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
- Node;AmplifyShaderEditor.VertexColorNode;5;-768.3608,369.3139;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
- Node;AmplifyShaderEditor.RangedFloatNode;18;-759.8979,564.2952;Inherit;False;Property;_OffsetScale;OffsetScale;6;0;Create;True;0;0;False;0;False;1;0;0;0;0;1;FLOAT;0
- Node;AmplifyShaderEditor.SimpleMultiplyOpNode;6;-427.6865,365.5568;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
- Node;AmplifyShaderEditor.SamplerNode;1;-593.5728,-136.4402;Inherit;True;Property;_MianTex;MianTex;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
- Node;AmplifyShaderEditor.ColorNode;31;-580.6475,-372.7855;Inherit;False;Property;_Maincolor;Maincolor;0;1;[HDR];Create;True;0;0;False;0;False;1,1,1,1;0,0,0,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
- Node;AmplifyShaderEditor.SimpleMultiplyOpNode;38;-209.1227,-252.6971;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
- Node;AmplifyShaderEditor.DynamicAppendNode;4;-258.9178,212.2244;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT3;0
- Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;0;25,-53;Float;False;True;-1;2;ASEMaterialInspector;100;1;GG/DingDianPY;0770190933193b94aaa3065e307002fa;True;Unlit;0;0;Unlit;2;True;2;5;False;-1;10;False;-1;0;1;False;-1;0;False;-1;True;0;False;-1;0;False;-1;False;False;False;False;False;False;True;0;False;-1;True;2;False;-1;True;True;True;True;True;0;False;-1;False;False;False;True;False;255;False;-1;255;False;-1;255;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;True;1;False;-1;True;3;False;-1;True;True;0;False;-1;0;False;-1;True;2;RenderType=Transparent=RenderType;Queue=Transparent=Queue=0;True;2;0;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;1;LightMode=ForwardBase;False;0;;0;0;Standard;1;Vertex Position,InvertActionOnDeselection;1;0;1;True;False;;False;0
- WireConnection;10;0;7;2
- WireConnection;10;1;11;0
- WireConnection;9;0;8;0
- WireConnection;9;1;7;1
- WireConnection;15;0;16;0
- WireConnection;12;0;9;0
- WireConnection;12;1;10;0
- WireConnection;12;2;15;0
- WireConnection;29;0;28;0
- WireConnection;29;2;26;0
- WireConnection;17;0;12;0
- WireConnection;6;0;17;0
- WireConnection;6;1;5;4
- WireConnection;6;2;18;0
- WireConnection;1;1;29;0
- WireConnection;38;0;31;0
- WireConnection;38;1;1;0
- WireConnection;4;1;6;0
- WireConnection;0;0;38;0
- WireConnection;0;1;4;0
- ASEEND*/
- //CHKSM=EA36E7C54C75073BF46E046251C42716914C4E88
|