X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=helper.c;h=e933bb1b5366714822c908c5b10318828d47d1c2;hp=441b3c9b22bb4b75bde312ae57a0d321a34c1270;hb=c6b68616d4ad34fd3efc0bc6435685aa3a69debb;hpb=821c28d874f5560d63a57ed73bc77b11337c3280;ds=sidebyside diff --git a/helper.c b/helper.c index 441b3c9..e933bb1 100644 --- 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(); }