NeHe Tutorial

In lesson 10, he seems to have lighting if you press the ‘b’ key(run the program and you’ll see what I mean). Yet, I can find any reference to how he set it up in the code? He did have a glNormal() call but that was it…

In lesson 7 I can’t get anything that even suggests I’m getting lighting…I followed his code exactly…
GLfloat LightAmb[] = {0.5,0.5,0.5,1};
GLfloat LightDif[] = {1,1,1,1};
GLfloat LightPos[] = {0,0,5,1};
glLightfv(GL_LIGHT0, GL_AMBIENT, LightAmb);
glLightfv(GL_LIGHT0, GL_DIFFUSE, LightDif);
glLightfv(GL_LIGHT0, GL_POSITION, LightPos);

I use this code…when I draw, say a quad, I put the glNormal3f(0,0,1); code before I specify the vertices. I can’t get any kind of result…Is there more to lighting than this?

What am I doing wrong?

Nevermind…I guess it would have helped to enable lighting…=)