Lights

Started by
0 comments, last by glPerfect 22 years, 2 months ago
hi How can I change the position of a Light? thx p.s. where can i find tutorials about lighting?
Advertisement
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.
Hello from my world

This topic is closed to new replies.

Advertisement