You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
813 B

7 years ago
  1. Shader "Custom/2dUnlitWithFade" {
  2. Properties
  3. {
  4. _Color ("Color Tint", Color) = (1,1,1,1)
  5. _MainTex ("Base (RGB) Alpha (A)", 2D) = "white"
  6. }
  7. Category
  8. {
  9. Lighting Off
  10. ZWrite Off
  11. //ZWrite On // uncomment if you have problems like the sprite disappear in some rotations.
  12. Cull back
  13. Blend SrcAlpha OneMinusSrcAlpha
  14. //AlphaTest Greater 0.001 // uncomment if you have problems like the sprites or 3d text have white quads instead of alpha pixels.
  15. Tags {Queue=Transparent}
  16. SubShader
  17. {
  18. Pass
  19. {
  20. SetTexture [_MainTex]
  21. {
  22. ConstantColor [_Color]
  23. Combine Texture * constant
  24. }
  25. }
  26. }
  27. }
  28. }