Unlit - Depth Cutout.shader 435 B

1234567891011121314151617181920212223242526272829303132333435
  1. Shader "Unlit/Depth Cutout"
  2. {
  3. Properties
  4. {
  5. _MainTex ("Base (RGB), Alpha (A)", 2D) = "white" {}
  6. }
  7. SubShader
  8. {
  9. LOD 100
  10. Tags
  11. {
  12. "Queue" = "Background"
  13. "IgnoreProjector" = "True"
  14. }
  15. Pass
  16. {
  17. Cull Off
  18. Lighting Off
  19. Blend Off
  20. ColorMask 0
  21. ZWrite On
  22. ZTest Less
  23. AlphaTest Greater .99
  24. ColorMaterial AmbientAndDiffuse
  25. SetTexture [_MainTex]
  26. {
  27. Combine Texture * Primary
  28. }
  29. }
  30. }
  31. }