PDA

View Full Version : Oddity with lights



ml
06-16-2003, 06:03 AM
Hi.

I was playing around a bit with lights and noticed that even though I set ambient, diffuse and specular to all 0 respectively, my polygons are still a very faint grey.
Can anyone tell me why that happens?

Regards, ml.

Deiussum
06-16-2003, 06:19 AM
Probably because the default ambient scene intensity is (0.2, 0.2, 0.2, 1.0).

Try set that to 0 with...

float black[] = {0.0, 0.0, 0.0, 1.0};

glLightModelfv(GL_LIGHT_MODEL_AMBIENT, black);

ml
06-16-2003, 06:21 AM
Thanks, that was the cause :)