3DText.shader 565 B

123456789101112131415161718192021
  1. Shader "Custom/3DTextShader" {
  2. Properties{
  3. _MainTex("Font Texture", 2D) = "white" {}
  4. _Color("Text Color", Color) = (1,1,1,1)
  5. }
  6. SubShader{
  7. Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
  8. Lighting Off Cull Off ZWrite On Fog { Mode Off }
  9. Blend SrcAlpha OneMinusSrcAlpha
  10. Pass {
  11. Color[_Color]
  12. SetTexture[_MainTex] {
  13. combine primary, texture * primary
  14. }
  15. }
  16. }
  17. }