ZhuangPeiShiJianZhu/Assets/05_Fonts/3DTextShader.shader
2025-03-10 10:18:11 +08:00

19 lines
563 B
Plaintext

Shader "Custom/3DTextShader" {
Properties{
_MainTex("Font Texture", 2D) = "white" {}
_Color("Text Color", Color) = (1,1,1,1)
}
SubShader{
Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
Lighting Off Cull Off ZWrite On Fog { Mode Off }
Blend SrcAlpha OneMinusSrcAlpha
Pass {
Color[_Color]
SetTexture[_MainTex] {
combine primary, texture * primary
}
}
}
}