DepthAPI Occlusion Lit conflict with stencil shader
Hi there, I'm currently working on creating a local multiplayer XR experience that involves both portal effects (using a custom stencil shader) and DepthAPI to allow players to see each other in a shared space.I've managed to get DepthAPI and the stencil shader to work individually, but I can't figure out how to combine them. The main issue is that DepthAPI, which uses the depth sensor of the Meta Quest 3, recognizes physical walls around players and prevents pixels of objects that are virtually further from the headset than the walls from being drawn. So, while the portal stencil works, it can't render the "outside" of the room. Do you have any ideas on how to deal with this? I'm not skilled enough in shaders to resolve it on my own. Here some screenshots of my current progress :2.2KViews0likes8Comments