Jump to content
  • Advertisement
Sign in to follow this  
Dirk Gregorius

Lighting and scaling

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

When I debug render my geometry and apply a scale matrix on it the object appear darker the greater the scaling. Somehow lighting/material and scaling seem to be related. Can I avoid this effect somehow? Cheers, -Dirk

Share this post


Link to post
Share on other sites
Advertisement
You need to make sure you normalise your normals once it's done.

Try

glEnable (gl_normalize)

or glNormalize()

can't remember the exact way it is, one of those two should work.

if not, look it up on google.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!