Jump to content
  • Advertisement
Sign in to follow this  
DigiMan Shart

Light Class

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

Currently, I'm working with OpenGL, and I was going to make my own light class. The question I had was whether someone can give me any advice on what my light class should include to make it optimal, and if I'm going to eventually use GLSL, what I should have in it to work with the shaders as well. Sorry if this is a n00b sounding question, but I've just begun to work with OpenGL lights. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
It should include any information that would pertain to the light and how you want it too look. It really depends on your engine/game and how it works?

simple stuff like position, color, and intensity are good starting points. Try googling "Lights" + "Opengl".

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!