关闭剔除 cull off
Shader "_MyShader/5_Alpha/3_CullOff"
{
Properties
{
_Color ("Color ", COLOR) = (1,1,1,1)
_MainTex ("Texture", 2D) = "white" {}
_CutOff ("CutOff", Range(0,0.9)) = 0.6
}
SubShader
{
Tags {"Queue" = "AlphaTest" "IgnoreProjecter" = "true" "RenderType" = "TransparentCutout"}
pass {
Tags {"LightMode" = "ForwardBase"}
Cull off
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "Lighting.cginc"
#include "UnityCG.cginc"
fixed4 _Color;
sampler2D _MainTex;
float4 _MainTex_ST;
fixed _CutOff;
struct a2v {
float4 vertex: POSITION