The Four Dimensional Portals package is a physics-based portal system for Unity. It enables the rendering of portals recursively, seamless object transfer between portals, and collision handling between objects across portals. The package also allows for customization of portal appearance using custom shaders. The source code is fully included in C#.
Key features include:
- Recursive portal rendering
- Seamless object transfer between portals
- Collision handling between objects across portals
- Customizable portal appearance with custom shaders
- Full C# source code included
Please note the following:
- This system does not support the Unity built-in character controller component. A simple rigidbody character controller implementation is included, but users may need to customize their character controller.
- The demo scenes require the Input System and Shader Graph packages to work.
- Rendering a portal with an oblique projection matrix can cause issues with z-depth and effects using z depth (e.g., ssao in urp).
- The OnCollisionXXX callbacks may not work properly when the collider interacts with a portal.
This package uses physics contacts modification and render texture to create a seamless portal system. It is designed to work with Unity and requires the Input System and Shader Graph packages for the demo scenes to work.
Four Dimensional Portals: A Physics-Based Portal System - Asset Store





