• Advertisement
Sign in to follow this  

Standard Lighting in a Vertex Program

This topic is 4714 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement