Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

khalligan

Lighting Question

This topic is 5177 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

Im using lighting and I need to turn it off and on continously, and Im wondering every time I turn it off and back on again do I need to set the glLight*() functions again or will openGL remember them Thanks Keith

Share this post


Link to post
Share on other sites
Advertisement
They''ll be remembered. You only need to enable and disable the individual lights. OpenGL is a state machine and so this applies to pretty much everything (blend states, texture combine states etc.)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!