Before rendering anything, call glLoadIdentity, then position your lights and then setup the camera.Originally Posted by Smotsholle
It is true that OpenGL can use up to eight lights. You can have more lights than that but only eight of them can be used at the same time. So in each frame you should decide which lights are active (up to eight) and use only them. The other possibility to avoid max_eight_lights restriction is to make your own lightning by lightmaps (alphamaps?) or shaders.Another Thing I found out on the internet was the fact that I can place a maximum of 8 lights on the screen GL_Light0 to GL_Light7, is this true? and if so, I there a way to work around that?
Bookmarks