Looking at the render.cpp function there's a long rant/comment about
glScale()'s effect on normal vectors. glEnable(GL_NORMALIZE) should
solve the problem.
-Brian Paul
Why not GL_NORMALIZE in Renderer::renderObject()?
-
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 23 years
- Location: Seattle, Washington, USA
Why not GL_NORMALIZE in Renderer::renderObject()?
BrianPaul wrote:Looking at the render.cpp function there's a long rant/comment about
glScale()'s effect on normal vectors. glEnable(GL_NORMALIZE) should
solve the problem.
-Brian Paul
I did this for compatibility and performance with older hardware/drivers. The vertex programs I use always normalize normal vectors when doing lighting.
--Chris