I’ve been using the assets from this video to learn how the teleportation visuals and depth effects work for a portal system. The asset and code are from Unity 2019, so porting them to a later Unity version produced a number of compatibility issues. I was able to fix most of them, but the visual slicer shader still isn’t working correctly.
For context: when an object passes from Portal A into Portal B, the slicer should clip the object as it goes through Portal A and simultaneously create a temporary duplicate that emerges from Portal B. Once the object has fully passed through the portal, that temporary duplicate is deleted. The mechanics are a bit tricky to explain in words, but the referenced part of the tutorial demonstrates the slicing behavior: https://youtu.be/cWpFZbjtSQg?si=TQks2IW_h30-_K-I&t=600
Experimenting with portals, for science.
The project is available here: https://github.com/SebLague/Portals/tree/master
If you'd like to get early access to new projects, or simply want to support me in creating more videos, please visit https://www.patreon.com/SebastianLague
Resources I used:
http://tomhulton.blogspot.com/2015/08/portal-rende...