i am trying to learn how to do lighting in opengl 2.0. i have a cube which is located on (0,0,0), and the camera is on (0,0,20). at the vertices i manually added all the necessary information and when i got to the normals, i just looked at the cube from the camera prespective, suggesting that the front face normal will be (0,0,-1) and the back face normal (0,0,1). also, the right face is (1,0,0), left - (-1,0,0), top - (0,1,0), bottom - (0,-1,0);
now, the problem is, that if i switch the front and back normals, it works. but i just don't understand.. the same logic i used for all the other normals (which works as is) mean that the front SHOULD be (0,0,-1).. but evidently i'm wrong.. i just don't get it..