How should I handle UVs when I’m reading from the stencil buffer and applying these textures on top of a cubemap on a 2d plane to get “fake depth”?
Is there a way to get the texcoords of another object even though we’re not applying material to it?
the pillar and chair are being retrieved from the stencil buffer and added to the cubemap room:
The material is very simple(just checking for stencil value, applying specific texture and adding it to cubemap)