Pixel-perfect 2D shadows on the GPU
Calculated shadowmap for each frame is on the right. The shadowmap is computed on the GPU using OpenCL.
git clone https://github.com/ggerganov/ocl-lights
cd ocl-lights
git submodule update --init
make
./bin/ocl-lights
- OpenGL
- OpenCL
- GLFW3