From: Ash Tyndall Date: Tue, 18 Oct 2011 12:33:26 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6ac25f4da2272bf30a02fbe638c1ab7b01eace86;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index a5fc5b6..305f79e 100644 --- a/scene.c +++ b/scene.c @@ -675,7 +675,7 @@ void init() { ); glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1); - glLightfv(GL_LIGHT0, GL_DIFFUSE, lightColor); + glLightfv(GL_LIGHT0, GL_AMBIENT, lightColor); glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, 0.1); glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 0.05); glEnable(GL_LIGHT0);