Mask.shader 525 B

1234567891011121314151617181920212223
  1. Shader "Transparent/Mask"
  2. {
  3. Properties
  4. {
  5. _MainTex ("Base (RGB)", 2D) = "white" {}
  6. _Mask ("Culling Mask", 2D) = "white" {}
  7. _Cutoff ("Alpha cutoff", Range (0,1)) = 0.1
  8. }
  9. SubShader
  10. {
  11. Tags {"Queue"="Transparent"}
  12. Lighting Off
  13. ZWrite Off
  14. Blend Off
  15. AlphaTest GEqual [_Cutoff]
  16. Pass
  17. {
  18. SetTexture [_Mask] {combine texture}
  19. SetTexture [_MainTex] {combine texture, previous}
  20. }
  21. }
  22. }