there are some light(dynamic or static) in the scene, and assume the scene only has a big ground with many(>1000) small grid.
how to apply light to each small grid ?
here's the code:
foreach(grid in ground)
{
shader.updateUniform( lights near the grid); //
render(grid);
}
Is it right? lights near each grid are different, every time I should update the light list in shader, is it too slowly?