X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=19aeee985f145108b12eba5cd657ed13ce9000ec;hp=bbc0d33148c73f262ac3aa37a0b0ab37a1e0c031;hb=49d0c0744b37ea0b6ee99f2d6ba01a22fd725b24;hpb=23af718f229454e7e231cbe7e0a852d8c7bbcb20 diff --git a/scene.c b/scene.c index bbc0d33..19aeee9 100644 --- a/scene.c +++ b/scene.c @@ -390,15 +390,15 @@ void display() { glRotatef(camAngle*camAngleFactor, 1.0, 0.0, 0.0); // Set camera angle upward /* Reposition the light source 0. */ - lightObjs[0].position[0] = 9*cos(45); + lightObjs[0].position[0] = 9*cos(0); lightObjs[0].position[1] = 5; - lightObjs[0].position[2] = 9*sin(45); + lightObjs[0].position[2] = 9*sin(0); lightObjs[0].position[3] = 0.0; /* Reposition the light source 1. */ - lightObjs[1].position[0] = 9*cos(45 + 200); + lightObjs[1].position[0] = 9*cos(90); lightObjs[1].position[1] = 5; - lightObjs[1].position[2] = 9*sin(45 + 200); + lightObjs[1].position[2] = 9*sin(90); lightObjs[1].position[3] = 0.0; //direction0[0] = lightPosition0[0];