This is a demo I whipped up about a year ago to test "portals" in raycasting. The actual raycasting/movement code is very sloppy, and the teleporting is janky... but I think it gets the point across. WASD - Move
The rays travel infinitely through the portals. To my knowledge, it shouldn't cause any sort of perspective issues.