diff --git a/progs/demos/teapot.c b/progs/demos/teapot.c index 4769139ed98..93d1fcba5f7 100644 --- a/progs/demos/teapot.c +++ b/progs/demos/teapot.c @@ -195,11 +195,15 @@ static void printhelp(void) static void drawbase(void) { + static const GLfloat amb[4] = { 1, .5, 0.2, 1 }; + static const GLfloat diff[4] = { 1, .4, 0.2, 1 }; int i,j; float x,y,dx,dy; glBindTexture(GL_TEXTURE_2D,t1id); + glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, amb); + glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, diff); dx=BASESIZE/BASERES; dy=-BASESIZE/BASERES; for(y=BASESIZE/2.0,j=0;j