Mask.shader 299 B

1234567891011121314
  1. Shader"Custom/Mask"{
  2. SubShader{
  3. //Geometry=2000
  4. Tags{"Queue" = "Geometry-10"}
  5. Lighting off
  6. //相当于小于或者等于本身深度值时,该物体渲染
  7. ZTest LEqual
  8. //打开深度写入
  9. ZWrite On
  10. //通道遮罩,为0时不写入任何颜色通道,除了深度缓存
  11. ColorMask 0
  12. Pass{}
  13. }
  14. }