The project is a recreation of Valve's Portal effect created within Unity.
The system is created using two portal prefabs. A portal prefab is made up of a mesh with an attached collider as well as a seperate camera and a particle effect. Each portal uses a material created using a render texture. When both portals are created within the scene each render texture uses the opposite portal's camera to render what eachother can view to give the illusion of being able to see in one and out the other.
You can find a video of the project here.
The project is built in Unity 2021.3.16f1.
Player Controls
- Move - WASD | Left Stick [Gamepad]
- Look - Mouse | Right Stick [Gamepad]
- Jump - Spacebar | Button South [Gamepad]
- Place Left Portal - Left Mouse Button | Left Trigger [Gamepad]
- Place Right Portal - Right Mouse Button | Right Trigger [Gamepad]
- Portal particle effect available from: https://assetstore.unity.com/packages/vfx/particles/cool-visual-effects-part-1-urp-support-176571
- How were the portals in Portal created? | Bitwise by DigiDigger
- Portals and Fully Functional Portals in Unity URP by Daniel Ilett
- Coding Adventure: Portals by Sebastian Lague
- Smooth PORTALS in Unity by Brackeys