PDA

View Full Version : Light position normalizing



Javac
10-14-2003, 05:44 AM
I'd like to know - if I'm setting
the light position in world coordinates
(for example smth like x = 1000.0,y = 100000.0, z = -500.0) - do I need to call
the glEnable(GL_NORMALIZE) or glEnable(GL_AUTO_NORMAL), or maybe both of them, or none of them?
Because on every option I'm getting the different effect.

What is correct thing to do?

bumby
10-14-2003, 10:49 AM
For a position you dont have to call normalize. Calling glNormalize will affect all the vertex normals that are present in your scene. Using unnormalized normal vectors for lighting will look different from normalized normals.