PDA

View Full Version : Second light source not working



05-01-2004, 04:24 PM
I am making a program and right now i set up two light and i setup the second light just like the first. My problem is that the second light is not working. is there anything i am over looking? any ideas would be appreciated. thanks

glLightfv(GL_LIGHT0, GL_POSITION, light_position);

glLightfv(GL_LIGHT1, GL_POSITION, light2_position);

glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
glEnable(GL_LIGHT1);

05-01-2004, 05:18 PM
Hi

I think that the default specular and diffuse values of light1 are different than light0.Try
setting them up.

Hope it helps.

Claude

05-01-2004, 07:54 PM
that was it thanks alot appreciate it