Alpha_Texture.shader 554 B

123456789101112131415161718192021222324252627
  1. Shader "UnlitAlpha"
  2. {
  3. Properties
  4. {
  5. _Color ("Main Color", Color) = (1,1,1,1)
  6. _MainTex ("Base (RGB) Trans. (Alpha)", 2D) = "white" { }
  7. }
  8. Category
  9. {
  10. ZWrite On
  11. Alphatest Greater 0.5
  12. Cull Off
  13. SubShader
  14. {
  15. Pass
  16. {
  17. Lighting Off
  18. SetTexture [_MainTex]
  19. {
  20. constantColor [_Color]
  21. Combine texture * constant, texture * constant
  22. }
  23. }
  24. }
  25. }
  26. }