Is there a way to pass an arbitrary number of light locations (and colors) for the fragment shader, and loop over them in the shader?
If not, then how are multiple lights supposed to be simulated? For example with respect to diffuse directional lighting, you can't just pass a sum of the light weights for the shader.
No comments:
Post a Comment