3D Text Shader.shader 427 B

12345678910111213141516171819202122
  1. Shader "Custom/3D Text Shader" {
  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. }