Implementation of the Lighting Grid Hierarchy method.
This file includes an implementation of the Lighting Grid Hierarchy method for efficiently handling many lights.
The Lighting Grid Hierarchy method was originally designed for explosion rendering, but it can be used for general purpose lighting computations involving a large number of (point) lights. It is particularly effective when shadows can be precomputed.
More details can be found in the original publication:
Can Yuksel and Cem Yuksel. 2017. Lighting Grid Hierarchy for Self-illuminating Explosions. ACM Transactions on Graphics (Proceedings of SIGGRAPH 2017) 36, 4, Article 110 (July 2017). http://www.cemyuksel.com/research/lgh/