Hello, guys. I’m making some sort of Fez’s physics, as you can see here [video]Vine.
What I’m doing right now is making a SceneCapture2D follow the main camera and render the custom stencil buffer with a postprocess shader. Then I read the texture, project the sphere’s position to screen coordinates and compare it to that texture to check for collisions, but, even if I use a half-size render target, it feels kinda stupid rerendering a buffer that the engine is already rendering. I mean, I’m following the camera with another camera to render a buffer that’s already been rendered just so I can read it, but I have not been able to find how to read the main camera stencil buffer.
So… Is this possible? Could somebody help me find how to read this buffer?