Geometry Shader-based 2D Shadows
Controls: Left mouse button: Move objects. Middle mouse button: Spawn new light. Right mouse button: Delete light.
For the lecture Image Synthesis at the TU München, I adapted the two algorithms shadow volumes and shadow mapping for the use in 2D scenes. In the canvas above you can test one of the two algorithms - shadow mapping. At first I implemented the two algorithms using C++ and OpenGL. My implementation makes use of geometry shaders and layered depth maps for performant rendering.