X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=9a737b30ca2cd2fc2cc8d68b5a6f73a7fc21053e;hp=220d2e95fac4b17c09813cc1135f338e7b6aaf14;hb=af5908c1fd4d3ef82dc576f7e44ef1b09d7a3a6c;hpb=6251d089718f7e14a4654c3f88818824ec033ecc diff --git a/scene.c b/scene.c index 220d2e9..9a737b3 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 + 180); + lightObjs[1].position[0] = 9*cos(180); lightObjs[1].position[1] = 5; - lightObjs[1].position[2] = 9*sin(45 + 180); + lightObjs[1].position[2] = 9*sin(180); lightObjs[1].position[3] = 0.0; //direction0[0] = lightPosition0[0];