Testing connections between linked_portal_door entity. Total of 4 on the test map, 2 linking the doors, and 2 linking the ceiling/floor. Done in Portal 2 Authoring Tools (Beta).
You can use r_portal_stencil_depth Also the door turns black because P2 can only render 4 portals at once unless r_portal_fastpath is 0, but then that makes portals look worse.