3D_font.shader 442 B

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