Skip to content

A portal system created within Unity using custom shaders and render textures.

Notifications You must be signed in to change notification settings

Ahillman2000/Unity-portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-portal

Project Description

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.

Installing / Using the Project

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]

Acknowledgements

References

About

A portal system created within Unity using custom shaders and render textures.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published