bad-piggies-0.1.3-porting/Assets/Shader/TextShaderWithZTest.shader
2024-02-24 22:40:44 -05:00

18 lines
No EOL
509 B
Text

Shader "_Custom/Text Shader With Z Test" {
Properties {
_MainTex ("Font Texture", 2D) = "white" {}
_Color ("Text Color", Color) = (1,1,1,1)
}
SubShader {
Tags { "QUEUE"="Transparent" "IGNOREPROJECTOR"="True" "RenderType"="Transparent" }
Pass {
Tags { "QUEUE"="Transparent" "IGNOREPROJECTOR"="True" "RenderType"="Transparent" }
Color [_Color]
ZWrite Off
Cull Off
Fog { Mode Off }
Blend SrcAlpha OneMinusSrcAlpha
SetTexture [_MainTex] { combine primary, texture alpha * primary alpha }
}
}
}