From: Ash Tyndall Date: Fri, 21 Oct 2011 03:51:38 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6e377a4df1d3abdc42daca7dcbb571f340160997;p=atyndall%2Fcits2231.git --- diff --git a/globals.c b/globals.c index 4fd0274..634060c 100644 --- a/globals.c +++ b/globals.c @@ -70,9 +70,9 @@ GLfloat factor = 1.0; GLfloat lineLength = 10; /* Light 0 parameters */ -GLfloat diffuse0[]={1.0, 1.0, 1.0, 1.0}; -GLfloat ambient0[]={1.0, 1.0, 1.0, 1.0}; -GLfloat specular0[]={1.0, 1.0, 1.0, 1.0}; +GLfloat diffuse0[]={0.2, 0.2, 0.2, 1.0}; +GLfloat ambient0[]={0.2, 0.2, 0.2, 1.0}; +GLfloat specular0[]={0.2, 0.2, 0.2, 1.0}; GLfloat direction0[] = {0.0, 0.0, 0.0}; GLfloat lightColor0[] = {1.0, 1.0, 1.0, 1.0}; // White light @@ -82,9 +82,9 @@ float lightAngle0 = 0.0, lightHeight0 = 5; int lightMoving0 = 0, lightStartX0, lightStartY0; /* Light 1 parameters */ -GLfloat diffuse1[]={1.0, 1.0, 1.0, 1.0}; -GLfloat ambient1[]={1.0, 1.0, 1.0, 1.0}; -GLfloat specular1[]={1.0, 1.0, 1.0, 1.0}; +GLfloat diffuse1[]={0.2, 0.2, 0.2, 1.0}; +GLfloat ambient1[]={0.2, 0.2, 0.2, 1.0}; +GLfloat specular1[]={0.2, 0.2, 0.2, 1.0}; GLfloat direction1[] = {0.0, 0.0, 0.0}; GLfloat lightColor1[] = {1.0, 1.0, 1.0, 1.0}; // White light