• Advertisement

Archived

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

Problem with directional lighting when I scale

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

Hi All, I have built a renderer, with only directional lighting (i.e., 0.0f in the W coordinate of the position of two directinal lights). When I render a model (I have tried some) and scale it down by 0.1f in all coordinates it becomes more lighted or bright. I have tried many other scale sizes, but in 0.1f there is a brightness popping. Why is this happenning and How can it be solved?

Share this post


Link to post
Share on other sites
Advertisement
when you scale teh matrix, all the normals will be scaled as well, and that affects lighting.

glEnable(GL_NORMALIZE);

should do the trick.

Share this post


Link to post
Share on other sites

  • Advertisement