When enabling/disabling lighting with one light, is it proper to enable/disable GL_Light0 as well as GL_Lighting, or instead of? When you leave lighting enabled and light0 disabled, is there an unnecessary performance cost for parts of the scene that don’t need lighting (bitmaps, flat shapes, etc)?
Nutty, I think he wanted to know what is better to do if he doesnt need lighting to render something, to disable his lights, or to disable all lighting…
I agree that disabling GL_LIGHTING would be the way to go. If you were to just disabled GL_LIGHT0, you would disable all lights, but lighting would still be performed so everything would be dark! You’d then have to rely on the ambient lighting properties if you wanted to even see anything.