OverlayMask.shader 505 B

1234567891011121314151617181920212223
  1. /*
  2. This shader is used to punch the hole while clearing out the alpha of the eye buffer
  3. The important details are:
  4. - Cull is Off to make sure it still work from back
  5. - Queue is Background, in consideration of efficiency
  6. */
  7. Shader "NRSDK/OverlayMask" {
  8. SubShader
  9. {
  10. Tags{ "Queue" = "Background" "RenderType" = "Opaque" }
  11. // Tags { "Queue" = "Geometry+1" "RenderType" = "Opaque" }
  12. Lighting Off
  13. Cull Off
  14. ZWrite On
  15. ZTest LEqual
  16. Pass
  17. {
  18. Color(0,0,0,0)
  19. }
  20. }
  21. FallBack "Diffuse"
  22. }