X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=3d435fbdf0cb98303b9da6a0a4555ade706f2bf5;hp=c7a6b9c77cc2cf4524dce8d9a96c5aa980bbc9a8;hb=a604859bd6e84a243e6884232a0346afdddd836c;hpb=97e628a10218fa76f16536c5c07094b91d12217b diff --git a/scene.c b/scene.c index c7a6b9c..3d435fb 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(0); + lightObjs[0].position[0] = 12*cos(0); lightObjs[0].position[1] = 5; - lightObjs[0].position[2] = 9*sin(0); + lightObjs[0].position[2] = 0;//12*sin(0); lightObjs[0].position[3] = 0.0; /* Reposition the light source 1. */ - lightObjs[1].position[0] = 9*cos(200); + lightObjs[1].position[0] = 12*cos(90); lightObjs[1].position[1] = 5; - lightObjs[1].position[2] = 9*sin(200); + lightObjs[1].position[2] = 0;//12*sin(90); lightObjs[1].position[3] = 0.0; //direction0[0] = lightPosition0[0];