I’ve been creating seamless portals for my game, mostly going well, I have portal cameras rendering at the correct perspectives and the player can pass through portals seamlessly, but I have two issues I cannot find a perfect solution for.
1. Camera near plane clipping portal render texture
When the player is close to the portals render texture the camera’s near plane clips rendering of the portal plane. I need this plane to be fully rendered across the screen when the player is that close to it.
2. Clipping geometry behind portals for the portal camera
The camera used by the portals for the render texture image should clip any geometry between the camera and the portal plane. I’ve had partial fixes using a replacement shader for the camera and passing the portal plane to a custom shader to then cull the objects but since im using a replacement shader I cannot find a way to then render all objects with their appropriate material shaders.
Any advice/solutions would be much appreciated!

