From: Ash Tyndall Date: Fri, 21 Oct 2011 08:00:01 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=354428cd17e38c21c4f9f9371f4db0bfe296e866;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index b403748..7e6d209 100644 --- a/scene.c +++ b/scene.c @@ -407,7 +407,7 @@ void init() { glLightfv(GL_LIGHT0, GL_SPOT_DIRECTION, direction0); glLightf(GL_LIGHT0, GL_SPOT_CUTOFF, 90.0); - //glLightf(GL_LIGHT0, GL_SPOT_EXPONENT, 1); + glLightf(GL_LIGHT0, GL_SPOT_EXPONENT,90); glLightfv(GL_LIGHT1, GL_AMBIENT, ambient1); glLightfv(GL_LIGHT1, GL_DIFFUSE, diffuse1); @@ -415,6 +415,7 @@ void init() { glLightfv(GL_LIGHT1, GL_SPOT_DIRECTION, direction1); glLightf(GL_LIGHT1, GL_SPOT_CUTOFF, 90.0); + glLightf(GL_LIGHT1, GL_SPOT_EXPONENT,90); glLightModelfv(GL_LIGHT_MODEL_AMBIENT, glightmodel); glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR);