// Made with Amplify Shader Editor // Available at the Unity Asset Store - http://u3d.as/y3X Shader "Tree_Plane" { Properties { _Cutoff( "Mask Clip Value", Float ) = 0.5 _BaseColor("BaseColor", 2D) = "white" {} _Emission_Color("Emission_Color", Color) = (0.5,0.5,0.5,1) _Color("Color", Color) = (0,0,0,0) [HideInInspector] _texcoord( "", 2D ) = "white" {} [HideInInspector] __dirty( "", Int ) = 1 } SubShader { Tags{ "RenderType" = "TransparentCutout" "Queue" = "Geometry+0" "IsEmissive" = "true" } Cull Off CGPROGRAM #pragma target 3.0 #pragma surface surf Standard keepalpha noshadow struct Input { float2 uv_texcoord; }; uniform sampler2D _BaseColor; uniform float4 _BaseColor_ST; uniform float4 _Color; uniform float4 _Emission_Color; uniform float _Cutoff = 0.5; void surf( Input i , inout SurfaceOutputStandard o ) { float2 uv_BaseColor = i.uv_texcoord * _BaseColor_ST.xy + _BaseColor_ST.zw; float4 tex2DNode1 = tex2D( _BaseColor, uv_BaseColor ); o.Albedo = ( tex2DNode1 * _Color ).rgb; o.Emission = ( tex2DNode1 * _Emission_Color ).rgb; o.Alpha = 1; clip( tex2DNode1.a - _Cutoff ); } ENDCG } CustomEditor "ASEMaterialInspector" } /*ASEBEGIN Version=18100 1983;77;1920;1013;1086.079;436.9327;1;True;True Node;AmplifyShaderEditor.SamplerNode;1;-655.4975,-92.48318;Inherit;True;Property;_BaseColor;BaseColor;1;0;Create;True;0;0;False;0;False;-1;None;2b3c409577c106c44b07957bd4632013;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.ColorNode;4;-326.5604,46.07228;Inherit;False;Property;_Color;Color;3;0;Create;True;0;0;False;0;False;0,0,0,0;0,0,0,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.ColorNode;2;-331.302,213.0379;Inherit;False;Property;_Emission_Color;Emission_Color;2;0;Create;True;0;0;False;0;False;0.5,0.5,0.5,1;0.772641,0.8398151,0.8789999,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.SimpleMultiplyOpNode;3;40.88232,124.1178;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0 Node;AmplifyShaderEditor.SimpleMultiplyOpNode;6;-0.56036,-121.3096;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;228.9124,-22.08804;Float;False;True;-1;2;ASEMaterialInspector;0;0;Standard;Tree_Plane;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;Off;0;False;-1;0;False;-1;False;0;False;-1;0;False;-1;False;0;Custom;0.5;True;False;0;True;TransparentCutout;;Geometry;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;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;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;3;0;1;0 WireConnection;3;1;2;0 WireConnection;6;0;1;0 WireConnection;6;1;4;0 WireConnection;0;0;6;0 WireConnection;0;2;3;0 WireConnection;0;10;1;4 ASEEND*/ //CHKSM=72806F85422F0B2A31EB5F89EAA4B3032DE6BBD4