Page 1 of 1

Why not GL_NORMALIZE in Renderer::renderObject()?

Posted: 06.11.2002, 13:14
by BrianPaul
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()?

Posted: 06.11.2002, 23:33
by chris
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