MyFont.shader 451 B

123456789101112131415161718
  1. Shader "GUI/3D Text Shader - Cull Back" {
  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 Back ZTest On 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. }