# Standard Lighting in a Vertex Program

## Recommended Posts

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
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...

## Create an account

Register a new account

• ### Forum Statistics

• Total Topics
628349
• Total Posts
2982210

• 10
• 9
• 24
• 11
• 9