Opengl lights
BlitzMax Forums/OpenGL Module/Opengl lights| 
 | ||
| I know there is a maximum nr of lights depending on the card. Does this still aply when opengl lighting is disabled? I'm using data from opengl lights but never enable lighting, i do the actual lighting in a shader. | 
| 
 | ||
| If I remember correctly, the limitation still applies. Using uniform arrays to pass your data should solve that problem. | 
| 
 | ||
| Ive had some time to test this and ended up with 683 opengl lights. It breaks at 684 lights, everything is renderd black. I dont see anyone using 683 lights in a scene, so i think this will do :) | 
| 
 | ||
| There's also deferred lighting which technically allows for infinite number of lights |