https://github.com/HuvaaKoodia/Unity-Portals
Portals in Unity by not using RenderTextures!
https://github.com/HuvaaKoodia/Unity-Portals
Last synced: about 2 months ago
JSON representation
Portals in Unity by not using RenderTextures!
- Host: GitHub
- URL: https://github.com/HuvaaKoodia/Unity-Portals
- Owner: HuvaaKoodia
- License: unlicense
- Created: 2017-05-11T12:34:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T07:07:51.000Z (about 8 years ago)
- Last Synced: 2024-08-03T05:19:25.581Z (11 months ago)
- Language: C#
- Size: 572 KB
- Stars: 20
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - Unity-Portals - Portals by not using RenderTextures (Portal)
README
# Unity-Portals
Portal rendering in Unity by not using RenderTextures!Instead uses ~~shader magic~~ [camera replacement shaders](https://docs.unity3d.com/Manual/SL-ShaderReplacement.html), [the stencil buffer](https://docs.unity3d.com/Manual/SL-Stencil.html) and [oblique projection](http://www.terathon.com/lengyel/Lengyel-Oblique.pdf) (thanks to [pr0g](https://github.com/pr0g/unity-portal-rendering/blob/master/PortalsWithRenderTargets/Assets/Scripts/Portal.cs) for that!).
## Limitations:
- Requires forward rendering
- The world inside the portals is rendered using a non-standard shader (legacy bumped specular)
- Does not work with skyboxes or camera background color
- No moving through the portals, yetYou can add more subshaders to the Portal Replacement shaders for "advanced" features like transparency.
## Controls:
Mouse - look around
WASD - move around
E & Q - ascend and descend
Shift - move faster
Control - move slower
End - unlock/lock cursor