Главная страница | назад

Article #21567: Incorrect lighting calculations in OpenGL

Why is the lighting in my scene messed up after I have scaled my objects?
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.

Last Modified: 12-APR-00