From: Brian Paul Date: Thu, 5 Oct 2000 21:57:00 +0000 (+0000) Subject: brighter colors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fdf2033bdae7279f4c36b1fab05ef36a656d4395;p=mesa.git brighter colors --- 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