From: Ash Tyndall Date: Fri, 21 Oct 2011 07:29:08 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=80aa0d67bd33a06666cf2cdfddc17186c9d08adc;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 2bf72a3..08e78d8 100644 --- a/scene.c +++ b/scene.c @@ -410,6 +410,7 @@ void init() { glLightf(GL_LIGHT1, GL_SPOT_CUTOFF, 90.0); glLightModelfv(GL_LIGHT_MODEL_AMBIENT, glightmodel); + glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR); glMaterialfv(GL_FRONT, GL_AMBIENT, ambient); glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse);