From fdf2033bdae7279f4c36b1fab05ef36a656d4395 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 5 Oct 2000 21:57:00 +0000 Subject: [PATCH] brighter colors --- progs/demos/teapot.c | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) 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