X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=376da69e3175186f4a4542407c335c951dadc4d3;hp=fb50b44b09c1082534f5495b7799875b47e86829;hb=529d53c44f59e91ed0b9321c0ddbeebb060631cf;hpb=532e038314bb33ff16314812c33f9549b449e4a0;ds=sidebyside diff --git a/scene.c b/scene.c index fb50b44..376da69 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] = 5; + lightObjs[0].position[0] = 4; lightObjs[0].position[1] = 5; lightObjs[0].position[2] = 5;//12*sin(0); lightObjs[0].position[3] = 0.0; /* Reposition the light source 1. */ - lightObjs[1].position[0] = 12*cos(90); + lightObjs[1].position[0] = -6; lightObjs[1].position[1] = 5; - lightObjs[1].position[2] = 0;//12*sin(90); + lightObjs[1].position[2] = -5;//12*sin(90); lightObjs[1].position[3] = 0.0; //direction0[0] = lightPosition0[0];