Managing many lights in real time with clustered shading