The actual portals are drawn using the stencil buffer in a pretty straight-forward manner. Unfortunately they are not recursive as I ran out of time. I did however implement some simple per-pixel lighting and normal mapping which was a great exercise in GLSL programming. Would have loved to implement shadow volumes as well, but that's for another time.
Video
Source code
Github repo: https://github.com/SimonLarsen/glPortal [ZLIB licenced]
No comments:
Post a Comment