Render inside of mesh as black

Hello! I’m garbage with shader coding, but I want to make it so that, for all objects in the scene, whenever the camera renders the insides of them (ergo, clips into them), it fills that empty space with black. How would I achieve this effect? Changing the backfaces to just render black does not work, because if any object is passing through that object, it will still be rendered inside of it (ie: The long box passing through the image on the left).

You could render an inverted version of the mesh completely black and unlit or disable backface culling and use a custom shader to make every face black that is viewed from the back, with the help of its normals most likely.
It’s possible that your performance suffers a bit from that

Hi @noonoox, have you found solution for this?