Hey you should be able to get it with material.needDepthPrePass = true
material.needDepthPrePass = true