GitHunt
FR

Friduric/voxel-cone-tracing

A real-time global illumination implementation using voxel cone tracing. Implemented in C++ and GLSL.

A voxel cone tracing implementation for real-time global illumination.
Voxel cone tracing is used to create effects such as transparency (by refraction), reflections (diffuse and specular) and soft shadows.
The implementation traces cones through a 3D texture. The 3D texture represents a directly lit voxelized scene.

See following URL for a video demo: https://youtu.be/cuCwyIBOapY

Inspired by "Interactive Indirect Illumination Using Voxel Cone Tracing" by Crassin et al.

(Cyril Crassin, Fabrice Neyret, Miguel Saintz, Simon Green and Elmar Eisemann)
https://research.nvidia.com/sites/default/files/publications/GIVoxels-pg2011-authors.pdf

This demo requires OpenGL 4.4 to run.

Rafael Sabino has adapted this project to run on Mac OS X. For more information, see:
https://github.com/phonowiz/voxel-cone-tracing.

Feel free to use, modify and share. Sharing is caring!

Languages

C++52.0%C47.1%GLSL0.5%Objective-C0.3%CMake0.0%

Contributors

MIT License
Created December 9, 2016
Updated March 10, 2026