Changing how lights are bound in forward passes
In Ogre 1.x; each Entity has it’s own list of lights, sorted by proximity. This way, when rendering, each Entity sends to the shader the closest N lights and, given enough batches, 8 lights per batch would be enough to lit the whole scene. That’s in theory at least. Until […]