(no commit message)
authorAsh Tyndall <git@atyndall.net>
Sat, 22 Oct 2011 07:22:38 +0000 (15:22 +0800)
committerAsh Tyndall <git@atyndall.net>
Sat, 22 Oct 2011 07:22:38 +0000 (15:22 +0800)
helper.c

index 441b3c9..e933bb1 100644 (file)
--- a/helper.c
+++ b/helper.c
@@ -357,7 +357,9 @@ void updateLights() {
     glPushMatrix();
       glColor3f(1.0, 1.0, 1.0);
       glTranslatef(lightObjs[i].position[0], lightObjs[i].position[1], lightObjs[i].position[2]);
-      glutSolidSphere(lightBallSize, 20, 20);
+      glPushAttrib(GL_NORMALIZE);
+        glutSolidSphere(lightBallSize, 20, 20);
+      glPopAttrib() ;
     glPopMatrix();
 
   }

UCC git Repository :: git.ucc.asn.au