X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=bc91a097e7c839e081154ed3514c51d1205372db;hp=6f14e046b947479af3d377ce54248d2116661752;hb=ed454e61276dbd1e2c6051589b1203698259f1a4;hpb=c0a7d47747d64224155ad5ee706baba742aff1b1 diff --git a/scene.c b/scene.c index 6f14e04..bc91a09 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] = 4; lightObjs[0].position[1] = 5; - lightObjs[0].position[2] = 9*sin(45); + lightObjs[0].position[2] = 6;//12*sin(0); lightObjs[0].position[3] = 0.0; /* Reposition the light source 1. */ - lightObjs[1].position[0] = 9*cos(45 + 90); + lightObjs[1].position[0] = -6; lightObjs[1].position[1] = 5; - lightObjs[1].position[2] = 9*sin(45 + 90); + lightObjs[1].position[2] = -4;//12*sin(90); lightObjs[1].position[3] = 0.0; //direction0[0] = lightPosition0[0];