Sign in to follow this  
cippyboy

Standard Lighting in a Vertex Program

Recommended Posts

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this