Originally Posted by
zacs7
Perhaps i should elborate it a little bit. I am not having trouble with making something shiny in general. I am having trouble to make an GL_QUADS surface shiny. It is defined by the following code:
Code:
glBegin(GL_QUADS);
glVertex3f(1,-1,1); //top left front
glVertex3f(1,1,1); //top right front
glVertex3f(-1,1,1); //top right back
glVertex3f(-1,-1,1); // top left back
glEnd();
Before i draw this GL_QUADS rectangle, I put these two lines:
Code:
glMaterialfv(GL_FRONT, GL_AMBIENT, green);
glMaterialfv(GL_FRONT, GL_SPECULAR, green);
thanks for any help.