glNormal

I understand that this method defines the normal but I am having trouble understanding how it affects the lighting of a simple app that I have created. When I comment the “normal” code out, the lighting fails. Could someone please explain the relevance of this method relative to lighting?

With the normal code not commented out:

http://img151.imageshack.us/img151/9592/lightoz0.jpg

commented out:

http://img151.imageshack.us/img151/9492/nolighthm3.jpg

Cheers,
James

In simplest terms the dot product of the normal by the light vector tells you how directly lit the surface is.

Thank you very much. That clears up my confusion a considerable amount.