From: Ash Tyndall Date: Sat, 22 Oct 2011 06:54:06 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=dd4a7d914b9bd35563dcafd4acff1d955a58e374;hp=f82d84288a2402a0ebab3c81a2da6299b90ffc13 --- diff --git a/scene.c b/scene.c index b56b518..b9a617b 100644 --- a/scene.c +++ b/scene.c @@ -390,9 +390,9 @@ void display() { glRotatef(camAngle*camAngleFactor, 1.0, 0.0, 0.0); // Set camera angle upward /* Reposition the light source 0. */ - lightObjs[0].position[0] = 12; + lightObjs[0].position[0] = 12*cos(45); lightObjs[0].position[1] = 5; - lightObjs[0].position[2] = 12; + lightObjs[0].position[2] = 12*sin(45 + 180); lightObjs[0].position[3] = 0.0; //direction0[0] = lightPosition0[0];