Question by
Ravart · Nov 21, 2016 at 12:11 AM ·
shader programmingdepthmaskdepth buffer
Inverted Depth Map (Draw farthest geometry over closest)
I require a inverted depth sorting, best inside the material shader. As mentioned, the farthest object overdraws the objects nearer to the camera. Yep, looks strange, but that's how I need it.
So far I tried Cull Front, ZWrite ON and ZTest Greater, but this approach requires a model in front of the camera, otherwise I don't see the result.
Maybe draw two triangles inside a Posteffect Shader? Hope anyone can help me.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612101050im_/https://answers.unity.com/themes/thub/images/avi.jpg)