View Full Version : glnormal3f
08-22-2005, 05:31 AM
if i understand the function right it determines how light reflects off the surface right.
08-22-2005, 06:14 AM
Yeah but it can be said for a lot of other GL commands ...
glNormal defines the vector perpendicular to the next glVertex. It should be unit length.
Have a look here, in the middle of the page there is a good image of this :
08-22-2005, 07:16 AM
what are the light constants and examples of.
08-24-2005, 04:19 AM
im using gllookat to move around my world. the light position is suppose to be at 0,0,5,1. im not sure if its suppose to be 0,0,5,0 but i've tried both. when i move to the other side of the object its still lit up. im also using glnormal3f.
Can you post your code?
Remember that the light position is transformed by the current modelview matrix when set.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.