Problem with directional lighting when I scale

Started by
1 comment, last by serez 20 years, 6 months ago
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?
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.
Thanks Alot!!
It helped :-)

This topic is closed to new replies.

Advertisement