- Home /
Question by
Mr_Happy_Pixel · Sep 11, 2017 at 09:20 PM ·
shaderrenderingshadersshadow
depth mask braking lighting
Hello I lately copied and used a basic depth mask shader to cut a hole in a terrain, however there are some bugs now.
shadows are being cast on my depth mask ,clearly shadows should not be on a big hole of nothing.
lighting on any thing behind the depth mask is broken , no shadows are being cast and transparent objects are invisable.
here is my depth mask shader :
Shader "Custom/depth mask" {
SubShader{
Tags{ "Queue" = "Geometry+10" } // earlier = hides stuff later in queue
Lighting Off
ZTest LEqual
ZWrite On
ColorMask 0
Pass{}
}
}
thanks for reading , sorry for bad spelling ,thanks in advance for answers
Comment