Opengl lights

BlitzMax Forums/OpenGL Module/Opengl lights

Ferret(Posted 2012) [#1]
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.


Noobody(Posted 2012) [#2]
If I remember correctly, the limitation still applies.

Using uniform arrays to pass your data should solve that problem.


Ferret(Posted 2012) [#3]
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 :)


BLaBZ(Posted 2013) [#4]
There's also deferred lighting which technically allows for infinite number of lights