Just wanted to say that this is really cool and well done!
It is probably the first implementation of 2d portals that works as expected apart from the VR mode edge material problem when you’re close to the portal. Thanks for putting this together, there are quite a few use cases for something like this!