Using an undetermined amount of lights in a scene?
Hey,
I''m wondering how I can use a undetermined amount of lights in a scene (ie. read them in from a file at run-time) since when working with lights I have to specify GL_LIGHT0 or GL_LIGHT1 ,ect.
Any help is appreciated...
Protozone
Might try having at the top of the file how many lights are to be initialized then have a loop that runs through that many times... You have to remember that ogl only handles 8 lights at a time, tho.
S.
S.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement