In theory ist simple for the rendering. But you also need to alter the pysics. If you create a portal on a wall, you need to walk half into the wall, then teleport to the other end, also half in a wall.Prey also has dynamic portals, but they do not appear ON a wall.