# Standard Lighting in a Vertex Program

## Recommended Posts

cippyboy    223
Can someone please help with this ? Its already posted here-> http://www.gamedev.net/community/forums/topic.asp?topic_id=306804 Its eating my brains out for some time... Any help is greatly apreciated

##### Share on other sites
MARS_999    1627
I response to you lighting moving you need to reset the Identity martrix...
So you should have

	glPushMatrix();	glLoadIdentity();    glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);	glPopMatrix();

The light will not jump around anymore... not sure if this is what you are after...