Problem with directional lighting when I scale
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?
when you scale teh matrix, all the normals will be scaled as well, and that affects lighting.
glEnable(GL_NORMALIZE);
should do the trick.
glEnable(GL_NORMALIZE);
should do the trick.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement