Oddity with lights

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.

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);

Thanks, that was the cause :slight_smile: