Files
BallCrushBest_GP/Assets/Resources/LoveLegendAssets/Shader/tongyong.shader
T
2026-04-20 12:06:34 +08:00

83 lines
4.9 KiB
Plaintext

// Made with Amplify Shader Editor
// Available at the Unity Asset Store - http://u3d.as/y3X
Shader "ASE/ZooMatch"
{
Properties
{
_MAinTex("MAinTex", 2D) = "white" {}
[HDR]_Main_C("Main_C", Color) = (1,1,1,1)
_Mask("Mask", 2D) = "white" {}
_MainFlow("MainFlow", Vector) = (0,0,0,0)
[HideInInspector] _texcoord( "", 2D ) = "white" {}
[HideInInspector] __dirty( "", Int ) = 1
}
SubShader
{
Tags{ "RenderType" = "Transparent" "Queue" = "Transparent+0" "IsEmissive" = "true" }
Cull Off
ZWrite Off
Blend SrcAlpha One
CGPROGRAM
#include "UnityShaderVariables.cginc"
#pragma target 4.6
#pragma surface surf Unlit keepalpha noshadow
struct Input
{
float2 uv_texcoord;
float4 vertexColor : COLOR;
};
uniform sampler2D _MAinTex;
uniform half2 _MainFlow;
uniform float4 _MAinTex_ST;
uniform half4 _Main_C;
uniform sampler2D _Mask;
uniform half4 _Mask_ST;
inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
{
return half4 ( 0, 0, 0, s.Alpha );
}
void surf( Input i , inout SurfaceOutput o )
{
float2 uv_MAinTex = i.uv_texcoord * _MAinTex_ST.xy + _MAinTex_ST.zw;
half2 panner9 = ( 1.0 * _Time.y * _MainFlow + uv_MAinTex);
half4 tex2DNode1 = tex2D( _MAinTex, panner9 );
o.Emission = ( tex2DNode1 * _Main_C * i.vertexColor ).rgb;
float2 uv_Mask = i.uv_texcoord * _Mask_ST.xy + _Mask_ST.zw;
o.Alpha = ( tex2DNode1.b * tex2D( _Mask, uv_Mask ).r * i.vertexColor.a );
}
ENDCG
}
CustomEditor "ASEMaterialInspector"
}
/*ASEBEGIN
Version=18707
47;175;1207;844;1019.811;660.9065;1.662226;True;True
Node;AmplifyShaderEditor.Vector2Node;11;-395.4762,181.6483;Inherit;False;Property;_MainFlow;MainFlow;4;0;Create;True;0;0;False;0;False;0,0;0,-0.8;0;3;FLOAT2;0;FLOAT;1;FLOAT;2
Node;AmplifyShaderEditor.TextureCoordinatesNode;10;-534.9034,57.47778;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;9;-154.3344,58.9921;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0;False;1;FLOAT;1;False;1;FLOAT2;0
Node;AmplifyShaderEditor.ColorNode;3;160.5288,214.8553;Inherit;False;Property;_Main_C;Main_C;2;1;[HDR];Create;True;0;0;False;0;False;1,1,1,1;0.3160377,1,0.7541794,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SamplerNode;1;69.08453,29.78693;Inherit;True;Property;_MAinTex;MAinTex;1;0;Create;True;0;0;False;0;False;-1;None;a4c5ecde8ab107742bb63120e16c7ad3;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.SamplerNode;6;76.19043,381.2281;Inherit;True;Property;_Mask;Mask;3;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.VertexColorNode;8;-27.57687,219.4534;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;2;477.5288,110.8553;Inherit;False;3;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;7;519.3937,414.1211;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;784.0682,5.391076;Half;False;True;-1;6;ASEMaterialInspector;0;0;Unlit;ASE/ZooMatch;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;Off;2;False;-1;0;False;-1;False;0;False;-1;0;False;-1;False;0;Custom;0.5;True;False;0;True;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;8;5;False;-1;1;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;False;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;9;0;10;0
WireConnection;9;2;11;0
WireConnection;1;1;9;0
WireConnection;2;0;1;0
WireConnection;2;1;3;0
WireConnection;2;2;8;0
WireConnection;7;0;1;3
WireConnection;7;1;6;1
WireConnection;7;2;8;4
WireConnection;0;2;2;0
WireConnection;0;9;7;0
ASEEND*/
//CHKSM=ECBC1423F0188BF4B5159351CD934475BE2AA47D