From: Ash Tyndall Date: Fri, 21 Oct 2011 07:52:31 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=b43c5e3029d160c9e82f410dfbabbb32068fc57d;p=atyndall%2Fcits2231.git --- diff --git a/globals.c b/globals.c index b220669..0124faf 100644 --- a/globals.c +++ b/globals.c @@ -82,7 +82,7 @@ float lightAngle1 = 360.0, lightHeight1 = 5; int lightMoving1 = 0, lightStartX1, lightStartY1; /* Material types */ -GLfloat ambient[] = {1.0, 1.0, 1.0, 1.0}; +GLfloat ambient[] = {0.2, 0.2, 0.2, 1.0}; GLfloat diffuse[] = {1.0, 0.8, 0.0, 1.0}; GLfloat specular[] = {1.0, 1.0, 1.0, 1.0}; GLfloat shine = 100.0; diff --git a/scene.c b/scene.c index 08e78d8..705c2d1 100644 --- a/scene.c +++ b/scene.c @@ -419,7 +419,7 @@ void init() { glMaterialf(GL_FRONT, GL_SHININESS, shine); glEnable(GL_LIGHT0); - //glEnable(GL_LIGHT1); + glEnable(GL_LIGHT1); glEnable(GL_LIGHTING); }