Advertisement Jump to content
Sign in to follow this  
AfroFire

OpenGL OpenGL Maximum amount of lights

This topic is 4902 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Guest Anonymous Poster
Uhhhh, that's the constant GL_MAX_LIGHTS, not the actual value. I bet it's actually 8.

Share this post


Link to post
Share on other sites
Here is what you do:


GLint iLights;
glGetIntegerv(GL_MAX_LIGHTS, &iLights);
std::cout << "Lights: " << iLights;


I get 8.

Share this post


Link to post
Share on other sites
sounds like a type conversion problem to me

usually the max lights constant is 8
and quite frankly in most situations you don t need more then 8 lights

you could of course use pixel shaders to do more lights

Share this post


Link to post
Share on other sites
This all sounds a little misleading. It's 8 lights per vertex, not 8 lights total. In theory the number of lights in the scene is unlimited, but that'd require you to break the geometry up into rather small pieces, and that's without pixel shaders.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!