>>349447302
You can use the stencil buffer to invisibility effects, with some caveats. For your case, have the materials of the meshes you want hidden use a stencil test of NotEqual, then have your hiding mesh write the same stencil id, with a lower render queue.

If the shaders you're currently using don't support stencil buffer operations, you can use https://github.com/supyrb/ConfigurableShaders , or add the same sorts of lines to the shaders you already use.