71 lines
4.5 KiB
Plaintext
71 lines
4.5 KiB
Plaintext
// Made with Amplify Shader Editor
|
|
// Available at the Unity Asset Store - http://u3d.as/y3X
|
|
Shader "Line/SaoMiao"
|
|
{
|
|
Properties
|
|
{
|
|
_D("D", 2D) = "white" {}
|
|
_Color0("底色", Color) = (0.06755074,0.4339623,0.1597603,0)
|
|
[HDR]_Color1("移动色", Color) = (0.1280253,2.037736,0.6081202,0)
|
|
[HideInInspector] _texcoord( "", 2D ) = "white" {}
|
|
[HideInInspector] __dirty( "", Int ) = 1
|
|
}
|
|
|
|
SubShader
|
|
{
|
|
Tags{ "RenderType" = "Opaque" "Queue" = "Geometry+0" "IgnoreProjector" = "True" "IsEmissive" = "true" }
|
|
Cull Back
|
|
CGPROGRAM
|
|
#include "UnityShaderVariables.cginc"
|
|
#pragma target 3.0
|
|
#pragma surface surf Standard keepalpha addshadow fullforwardshadows exclude_path:deferred
|
|
struct Input
|
|
{
|
|
float2 uv_texcoord;
|
|
};
|
|
|
|
uniform float4 _Color0;
|
|
uniform float4 _Color1;
|
|
uniform sampler2D _D;
|
|
|
|
void surf( Input i , inout SurfaceOutputStandard o )
|
|
{
|
|
float4 temp_output_36_0 = _Color0;
|
|
o.Albedo = temp_output_36_0.rgb;
|
|
float2 appendResult45 = (float2(_Time.y , 1.0));
|
|
float2 uv_TexCoord40 = i.uv_texcoord + appendResult45;
|
|
float4 appendResult39 = (float4(uv_TexCoord40.y , uv_TexCoord40.x , 0.0 , 0.0));
|
|
float4 lerpResult42 = lerp( _Color0 , _Color1 , tex2D( _D, appendResult39.xy ).r);
|
|
o.Emission = lerpResult42.rgb;
|
|
o.Alpha = 1;
|
|
}
|
|
|
|
ENDCG
|
|
}
|
|
Fallback "Diffuse"
|
|
CustomEditor "ASEMaterialInspector"
|
|
}
|
|
/*ASEBEGIN
|
|
Version=18935
|
|
479;380;1107;539;1237.227;-367.6815;1;True;True
|
|
Node;AmplifyShaderEditor.SimpleTimeNode;44;-1967.083,1038.635;Inherit;False;1;0;FLOAT;1;False;1;FLOAT;0
|
|
Node;AmplifyShaderEditor.DynamicAppendNode;45;-1716.568,1083.964;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;1;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
|
|
Node;AmplifyShaderEditor.TextureCoordinatesNode;40;-1518.949,1060.864;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;39;-1267.792,1050.187;Inherit;False;FLOAT4;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT4;0
|
|
Node;AmplifyShaderEditor.SamplerNode;1;-1116.963,1034.764;Inherit;True;Property;_D;D;0;0;Create;True;0;0;0;False;0;False;-1;4c69c6737be2d934bb8a79dcd10de34a;4c69c6737be2d934bb8a79dcd10de34a;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;36;-806.2169,473.9262;Inherit;False;Property;_Color0;底色;1;0;Create;False;0;0;0;False;0;False;0.06755074,0.4339623,0.1597603,0;0.06755074,0.4339623,0.1597603,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
|
Node;AmplifyShaderEditor.ColorNode;43;-833.4907,716.8116;Inherit;False;Property;_Color1;移动色;2;1;[HDR];Create;False;0;0;0;False;0;False;0.1280253,2.037736,0.6081202,0;0.1280253,2.037736,0.6081202,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
|
Node;AmplifyShaderEditor.LerpOp;42;-529.5861,700.647;Inherit;True;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
|
|
Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;107.9092,512.1405;Float;False;True;-1;2;ASEMaterialInspector;0;0;Standard;Line/SaoMiao;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;False;False;False;False;False;False;Back;0;False;-1;0;False;-1;False;0;False;-1;0;False;-1;False;0;Opaque;0.5;True;True;0;False;Opaque;;Geometry;ForwardOnly;18;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;True;0;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;True;Relative;0;;-1;-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;16;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;5;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;45;0;44;0
|
|
WireConnection;40;1;45;0
|
|
WireConnection;39;0;40;2
|
|
WireConnection;39;1;40;1
|
|
WireConnection;1;1;39;0
|
|
WireConnection;42;0;36;0
|
|
WireConnection;42;1;43;0
|
|
WireConnection;42;2;1;1
|
|
WireConnection;0;0;36;0
|
|
WireConnection;0;2;42;0
|
|
ASEEND*/
|
|
//CHKSM=AAF2359ABF118E8BCCE50DDCEB575160E2B9122B |