Im trying to transition between 2 cameras using a plane, not too sure how to achieve that. The idea is to drag the screen left right, and depending on where I am, I will see a amount of camera 1 and/or 2.
I’m thinking about rendering to 2 textures (one for each camera) and rebuilding a final texture. But maybe there is something to do with stencils?
Using rendering to texture would be the simplest. I’d probably render one side directly to framebuffer (the larger side - so swap this as the line moves), the other to texture and then put it on top.
The other option could be to replace a chunk of the standard material fragment shader to discard pixels on the “other side” - this way you’d render both sides to framebuffer, but set culling x coordinate as a fragment parameter to discard pixels.