Qbasicnews.com

Full Version: OpenGL multiple light sources..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi. Is there anyway that I could use OpenGL lighting besides using
GL_Light1-7?

Because I am making some type of map editor of my own where it might need more than 7 light sources in order to make it look fancy. GL_Light1, GL_Light2, etc. Anything thats lightsource where using it as an array is impossible really bugs me.

I wish there was such thing as GL_Light(1), (2) and so on.


Confusedtar: :longeye:
Lightmapping is a popular method. It's alot easier than most gfx techniques. Here's the gist of it.

http://www.alsprogrammingresource.com/li...orial.html
Oh I see.

The tip is, to use GLColor3F instead of GL_Lighting.

Sort of interesting but it might take up a little but more computer resources but it's worth trying.
Actually, that's using a texture, if I posted the right link. It's basically like shadowmapping. Wink