Advanced
World transform of the exit portal; its +Z side is kept.
World transform of the portal camera, as mirrorCameraThroughPortal wrote it; the
camera's view matrix still holds last frame's pose at that point.
Plane to write into.
How far past the exit surface to cut, in world units. The default suits a scene authored in metres; scale it with the scene.
The written plane, in the camera's view space.
Writes the exit surface as a clipping plane in the portal camera's view space
Set the result as the camera's Camera3D#clippingPlane and it keeps only what lies beyond the exit, so the wall the exit sits in, and anything else between the camera and the opening, is left out. The plane sits
biaspast the surface, so the exit quad itself is cut too rather than flickering across the opening.