// Made with Amplify Shader Editor // Available at the Unity Asset Store - http://u3d.as/y3X Shader "FateShader" { Properties { _MainTex("MainTex", 2D) = "white" {} _Cutoff( "Mask Clip Value", Float ) = 0.66 _Alpha("Alpha", 2D) = "white" {} [Toggle]_Opacity("Opacity", Float) = 1 [Toggle]_Cutout("Cutout", Float) = 0 [HideInInspector] _texcoord( "", 2D ) = "white" {} [HideInInspector] __dirty( "", Int ) = 1 } SubShader { Tags{ "RenderType" = "Transparent" "Queue" = "AlphaTest+0" "IgnoreProjector" = "True" "IsEmissive" = "true" } Cull Off AlphaToMask On CGPROGRAM #pragma target 3.0 #pragma surface surf Unlit keepalpha noshadow struct Input { float2 uv_texcoord; }; uniform sampler2D _MainTex; uniform float4 _MainTex_ST; uniform float _Opacity; uniform sampler2D _Alpha; uniform float4 _Alpha_ST; uniform float _Cutout; uniform float _Cutoff = 0.66; 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; float4 tex2DNode1 = tex2D( _MainTex, uv_MainTex ); o.Emission = tex2DNode1.rgb; float2 uv_Alpha = i.uv_texcoord * _Alpha_ST.xy + _Alpha_ST.zw; float Opacity6 = ( tex2DNode1.a * tex2D( _Alpha, uv_Alpha ).r ); o.Alpha = (( _Opacity )?( Opacity6 ):( 1.0 )); clip( (( _Cutout )?( Opacity6 ):( 1.0 )) - _Cutoff ); } ENDCG } CustomEditor "ASEMaterialInspector" } /*ASEBEGIN Version=18900 1038;137;1147;471;923.4102;277.0058;1.480406;True;False Node;AmplifyShaderEditor.SamplerNode;1;-991.8311,-313.1321;Inherit;True;Property;_MainTex;MainTex;0;0;Create;True;0;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.SamplerNode;3;-1063.475,-110.5453;Inherit;True;Property;_Alpha;Alpha;2;0;Create;True;0;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.SimpleMultiplyOpNode;4;-758.9771,-77.15388;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.RegisterLocalVarNode;6;-627.9411,-58.70366;Inherit;False;Opacity;-1;True;1;0;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.RangedFloatNode;25;-534.9466,76.17107;Inherit;False;Constant;_Float1;Float 1;5;0;Create;True;0;0;0;False;0;False;1;0;0;0;0;1;FLOAT;0 Node;AmplifyShaderEditor.GetLocalVarNode;9;-1008,560;Inherit;False;6;Opacity;1;0;OBJECT;;False;1;FLOAT;0 Node;AmplifyShaderEditor.FWidthOpNode;7;-832,560;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.RangedFloatNode;2;-992,480;Inherit;False;Property;_Cutoff;Cutoff;1;0;Create;True;0;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0 Node;AmplifyShaderEditor.GetLocalVarNode;5;-944,384;Inherit;False;6;Opacity;1;0;OBJECT;;False;1;FLOAT;0 Node;AmplifyShaderEditor.SimpleMaxOpNode;11;-640,560;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0.0001;False;1;FLOAT;0 Node;AmplifyShaderEditor.SimpleSubtractOpNode;8;-688,400;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.RangedFloatNode;13;-528,576;Inherit;False;Constant;_Float0;Float 0;4;0;Create;True;0;0;0;False;0;False;0.5;0;0;0;0;1;FLOAT;0 Node;AmplifyShaderEditor.ToggleSwitchNode;24;-358.3005,49.15369;Inherit;False;Property;_Opacity;Opacity;3;0;Create;True;0;0;0;False;0;False;1;True;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.SimpleAddOpNode;12;-384,528;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.SaturateNode;14;-240,592;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.ToggleSwitchNode;26;-353.7239,139.012;Inherit;False;Property;_Cutout;Cutout;4;0;Create;True;0;0;0;False;0;False;0;True;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.RegisterLocalVarNode;15;-79.95943,586.6773;Inherit;False;a2c;-1;True;1;0;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.GetLocalVarNode;16;-380.7186,282.1119;Inherit;False;15;a2c;1;0;OBJECT;;False;1;FLOAT;0 Node;AmplifyShaderEditor.SimpleDivideOpNode;10;-512,496;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;102.3322,-143.1352;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;FateShader;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;False;False;False;False;False;False;Off;0;False;-1;0;False;-1;False;0;False;-1;0;False;-1;False;3;Custom;0.66;True;False;0;True;Transparent;;AlphaTest;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;0;5;False;-1;10;False;-1;0;5;False;-1;7;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;True;0;0;False;-1;-1;0;False;2;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;4;0;1;4 WireConnection;4;1;3;1 WireConnection;6;0;4;0 WireConnection;7;0;9;0 WireConnection;11;0;7;0 WireConnection;8;0;5;0 WireConnection;8;1;2;0 WireConnection;24;0;25;0 WireConnection;24;1;6;0 WireConnection;12;0;10;0 WireConnection;12;1;13;0 WireConnection;14;0;12;0 WireConnection;26;0;25;0 WireConnection;26;1;6;0 WireConnection;15;0;14;0 WireConnection;10;0;8;0 WireConnection;10;1;11;0 WireConnection;0;2;1;0 WireConnection;0;9;24;0 WireConnection;0;10;26;0 ASEEND*/ //CHKSM=747079D4FF5A0CD3EB6DF34E7C6FCD2FAD18D42F