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