[All]
Incorrect lighting calculations in OpenGL
By: Mat Duafala
Abstract: Lighting values are messed up in OpenGL
Question:
Why is the lighting in my scene messed up after I have scaled my objects?
Answer:
You have to re-normalize your surface normals after you scale an object. To do this call glEnable(GL_NORMALIZE); . Note: This does Add some overhead to the runtime version of your product.
Connect with Us