PDA

View Full Version : disable specular prop.



loozer
08-13-2002, 03:53 AM
in the directX api there is a option to disable specular light, is there anything like this in opengl. i know i can turn it of using the finalcombiner but i dont want to use it.

Rob The Bloke
08-13-2002, 10:03 AM
float colour[4] = {0,0,0,0};
glMaterialfv(GL_FRONT_AND_BACK,GL_SPECULAR,colour) ;
glLightfv(GL_LIGHT#,GL_SEPCULAR,colour);

thats all you have to do to turn off specular.