/ocl-lights

Pixel perfect 2D shadows on the GPU

Primary LanguageC++MIT LicenseMIT

ocl-lights

Pixel-perfect 2D shadows on the GPU

CG++ Lights

Calculated shadowmap for each frame is on the right. The shadowmap is computed on the GPU using OpenCL.

Building & running

git clone https://github.com/ggerganov/ocl-lights
cd ocl-lights
git submodule update --init
make
./bin/ocl-lights

Dependencies

  • OpenGL
  • OpenCL
  • GLFW3