I have a planar object in my scene that represents a sheet of paper. I want to draw other geomtry in the same plane as the paper so that it appears to be drawn on the paper. For this I need to explicitly control the draw order to avoid z-fighting between all the geomtry that’s exists in the same plane. I believe I can do this with cull bins. But I still want this sheet of paper to occlude behind other geometry in my scene as it logically should, and I’m not sure how to use cull bins to achieve this. Is this possible? Any help is greatly appreciated.
It will still occlude behind other geometry because of Z-buffering, I’d think. Just make sure that setDepthWrite is enabled on your sheet of paper (the default), and setDepthTest when drawing everything in front of it (also the default).