hi
How can I change the position of a Light?
thx
p.s. where can i find tutorials about lighting?
GLfloat light_pos[] = {1.0f, 1.0f, -1.0f, 1.0f};glLightfv(GL_LIGHT0, GL_POSITION, light_pos};
changing the values of light_pos will change the position of light as desired.
Look into the red book for information on lights.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement