18 lines
No EOL
509 B
Text
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 }
|
|
}
|
|
}
|
|
} |