- Home /
How to cull an object that goes behind another object, with invisible mesh
I'm doing at. I want an object with a mesh [a], to move behind another object, which is invisible [b], and get culled as if [b] was not invisible.
I want to make my invisible object, an object I can put in place of a real wall, from the cameras image; but I don't want it to be actually visible.
That way I can make ar objects go behind windows, walls, doors and look nicer.
I have no idea how to achieve this. Help gladly received.
I believe something similar has been answered before, but I forgot where it was
Answer by Infrid · May 28, 2013 at 12:05 AM
Thanks I found it http://wiki.unity3d.com/index.php?title=DepthMask
Your answer
Follow this Question
Related Questions
Occlusion Culling with Static Mesh Render Object 0 Answers
mesh from scratch disappearing if transform out of view 2 Answers
How do you add something to your pass? 1 Answer
Cullingmask issue. 0 Answers
Frustum culling 1 Answer