92 lines
5.6 KiB
Plaintext
92 lines
5.6 KiB
Plaintext
|
|
//
|
||
|
|
//
|
||
|
|
Shader "Shader/Rj"
|
||
|
|
{
|
||
|
|
Properties
|
||
|
|
{
|
||
|
|
_MainTex("MainTex", 2D) = "white" {}
|
||
|
|
_NoiseTex("NoiseTex", 2D) = "white" {}
|
||
|
|
_NoiseSpeed("NoiseSpeed", Vector) = (1,1,0,0)
|
||
|
|
_NoisePower("NoisePower", Range( 0 , 1)) = 0
|
||
|
|
_Alpha("Alpha", Range( 0 , 1)) = 0
|
||
|
|
[HideInInspector] _texcoord( "", 2D ) = "white" {}
|
||
|
|
[HideInInspector] __dirty( "", Int ) = 1
|
||
|
|
}
|
||
|
|
|
||
|
|
SubShader
|
||
|
|
{
|
||
|
|
Tags{ "RenderType" = "Transparent" "Queue" = "Transparent+0" "IgnoreProjector" = "True" "IsEmissive" = "true" }
|
||
|
|
Cull Back
|
||
|
|
CGPROGRAM
|
||
|
|
#include "UnityShaderVariables.cginc"
|
||
|
|
#pragma target 3.0
|
||
|
|
#pragma surface surf Unlit alpha:fade keepalpha noshadow
|
||
|
|
struct Input
|
||
|
|
{
|
||
|
|
float2 uv_texcoord;
|
||
|
|
float4 vertexColor : COLOR;
|
||
|
|
};
|
||
|
|
|
||
|
|
uniform sampler2D _MainTex;
|
||
|
|
uniform float4 _MainTex_ST;
|
||
|
|
uniform sampler2D _NoiseTex;
|
||
|
|
uniform float2 _NoiseSpeed;
|
||
|
|
uniform float4 _NoiseTex_ST;
|
||
|
|
uniform float _NoisePower;
|
||
|
|
uniform float _Alpha;
|
||
|
|
|
||
|
|
inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
|
||
|
|
{
|
||
|
|
return half4 ( 0, 0, 0, s.Alpha );
|
||
|
|
}
|
||
|
|
|
||
|
|
void surf( Input i , inout SurfaceOutput o )
|
||
|
|
{
|
||
|
|
float2 uv0_MainTex = i.uv_texcoord * _MainTex_ST.xy + _MainTex_ST.zw;
|
||
|
|
float2 uv0_NoiseTex = i.uv_texcoord * _NoiseTex_ST.xy + _NoiseTex_ST.zw;
|
||
|
|
float2 panner18 = ( _Time.y * _NoiseSpeed + uv0_NoiseTex);
|
||
|
|
float4 tex2DNode1 = tex2D( _MainTex, ( float4( uv0_MainTex, 0.0 , 0.0 ) + ( tex2D( _NoiseTex, panner18 ) * _NoisePower ) ).rg );
|
||
|
|
o.Emission = ( tex2DNode1 * i.vertexColor ).rgb;
|
||
|
|
o.Alpha = ( tex2DNode1.a * i.vertexColor.a * _Alpha );
|
||
|
|
}
|
||
|
|
|
||
|
|
ENDCG
|
||
|
|
}
|
||
|
|
CustomEditor "ASEMaterialInspector"
|
||
|
|
}
|
||
|
|
/*ASEBEGIN
|
||
|
|
Version=17500
|
||
|
|
1962;26;1906;1004;2432.647;535.2386;1;True;False
|
||
|
|
Node;AmplifyShaderEditor.TextureCoordinatesNode;16;-1922.365,-227.7986;Inherit;False;0;20;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.Vector2Node;17;-1873.365,-76.79874;Inherit;False;Property;_NoiseSpeed;NoiseSpeed;2;0;Create;True;0;0;False;0;1,1;0.1,0;0;3;FLOAT2;0;FLOAT;1;FLOAT;2
|
||
|
|
Node;AmplifyShaderEditor.SimpleTimeNode;15;-1889.365,98.20135;Inherit;False;1;0;FLOAT;1;False;1;FLOAT;0
|
||
|
|
Node;AmplifyShaderEditor.PannerNode;18;-1610.366,-60.79875;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0;False;1;FLOAT;1;False;1;FLOAT2;0
|
||
|
|
Node;AmplifyShaderEditor.SamplerNode;20;-1410.366,-83.79874;Inherit;True;Property;_NoiseTex;NoiseTex;1;0;Create;True;0;0;False;0;-1;None;1044185bb74b29a49b3d75455fa2098b;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.RangedFloatNode;19;-1422.366,136.2014;Inherit;False;Property;_NoisePower;NoisePower;3;0;Create;True;0;0;False;0;0;0.03;0;1;0;1;FLOAT;0
|
||
|
|
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;21;-1090.5,-18.80687;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
|
||
|
|
Node;AmplifyShaderEditor.TextureCoordinatesNode;22;-1225.31,-229.8289;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.SimpleAddOpNode;23;-904.3657,-96.79873;Inherit;False;2;2;0;FLOAT2;0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
|
||
|
|
Node;AmplifyShaderEditor.SamplerNode;1;-752,-78;Inherit;True;Property;_MainTex;MainTex;0;0;Create;True;0;0;False;0;-1;None;d12eebc40a67eb149a5650795cb8cb63;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.VertexColorNode;2;-658.3046,169.159;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
||
|
|
Node;AmplifyShaderEditor.RangedFloatNode;24;-754.4072,353.3641;Inherit;False;Property;_Alpha;Alpha;4;0;Create;True;0;0;False;0;0;0.94;0;1;0;1;FLOAT;0
|
||
|
|
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;14;-331,215;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
|
||
|
|
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;3;-313.3067,23.87469;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
|
||
|
|
Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;0,0;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;E3DEffect/BackGroundE3DEffect/BackGround2;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;Transparent;0.5;True;False;0;False;Transparent;;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;;-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;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;18;0;16;0
|
||
|
|
WireConnection;18;2;17;0
|
||
|
|
WireConnection;18;1;15;0
|
||
|
|
WireConnection;20;1;18;0
|
||
|
|
WireConnection;21;0;20;0
|
||
|
|
WireConnection;21;1;19;0
|
||
|
|
WireConnection;23;0;22;0
|
||
|
|
WireConnection;23;1;21;0
|
||
|
|
WireConnection;1;1;23;0
|
||
|
|
WireConnection;14;0;1;4
|
||
|
|
WireConnection;14;1;2;4
|
||
|
|
WireConnection;14;2;24;0
|
||
|
|
WireConnection;3;0;1;0
|
||
|
|
WireConnection;3;1;2;0
|
||
|
|
WireConnection;0;2;3;0
|
||
|
|
WireConnection;0;9;14;0
|
||
|
|
ASEEND*/
|
||
|
|
//CHKSM=8BBFDF51A1F8B59954ED64FE15DCA9215624B4C0
|