glEnable (GL_COLOR_MATERIAL) glColor, . , (glColor ).
, - glColor : glColor4f (1.0, 1.0, 1.0, 1.0).
, . REPLACE - ! ( , , !) , GL_COLOR_MATERIAL , glColor Ambient Diffuse - , (). , , , (, , ), glEnable (GL_COLOR_MATERIAL), :
glDisable(GL_COLOR_MATERIAL); //disable color influence
GLfloat ambient[] = { 0.2f, 0.2f, 0.2f, 1.0f }; //default material has this ambient color!
GLfloat diffuse[] = { 0.8f ,0.8f ,0.8f, 1.0f }; //default material has this diffuse color!
glMaterialfv(GL_FRONT, GL_AMBIENT, ambient); //restore default material ambient color
glMaterialfv(GL_FRONT, GL_AMBIENT, diffuse); //restore default material diffuse color
, ! .
, , , ( ).
, , , , .