How do I determine which face is an interior face and make these unshaded?
I am looking to hide the inside of meshes. So for example, if I have a scene like this:
I would want to hide that interior to the right, like this:
My first thought was to try a ColorRect with a canvasitem shader, but I couldn't think of a way to access depth information. So then I tried making a spatial shader to use for every mesh, which gave me access to the DEPTHTEXTURE. When I applied that directly to the ALBEDO, it looked promising, but it stopped when it was clipping with the camera. So now my thought is to disable culling and render these previously culled surfaces differently.
Sorry if my question is relatively basic, I'm not that experienced with shaders in general. Any help is greatly appreciated, even a different approach entirely.