Given that I'm working on the collision part quite slowly, I've made a separate branch from the visual part of the code, merged it with the current master branch and made a
pull request with it.
IMO it deserves a separate and earlier pull request than the whole thing since the visual portals can be used in mapping already (even though currently only as windows, but still...), plus there's the new mirror code which enables mirrors on 2-sided lines and doesn't require any space behind them.
I'd say the code is of some relatively good quality compared to the original branch (/portals). Still needs the final word of some of the main developers tho.
P.S. Rendering a portal is actually a bit hard... only in software though lol.