X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=0820aece5be4307287809ffe5fd3572b23ffa5cc;hp=b9a617b8d0d23483030b5e0ab3bf2b7d53818409;hb=cea3bae600d38602aa6d06fe3d751c8d857e1445;hpb=dd4a7d914b9bd35563dcafd4acff1d955a58e374;ds=sidebyside diff --git a/scene.c b/scene.c index b9a617b..0820aec 100644 --- a/scene.c +++ b/scene.c @@ -390,11 +390,17 @@ void display() { glRotatef(camAngle*camAngleFactor, 1.0, 0.0, 0.0); // Set camera angle upward /* Reposition the light source 0. */ - lightObjs[0].position[0] = 12*cos(45); + lightObjs[0].position[0] = 5; lightObjs[0].position[1] = 5; - lightObjs[0].position[2] = 12*sin(45 + 180); + lightObjs[0].position[2] = 5;//12*sin(0); lightObjs[0].position[3] = 0.0; + /* Reposition the light source 1. */ + lightObjs[1].position[0] = -5; + lightObjs[1].position[1] = 5; + lightObjs[1].position[2] = -5;//12*sin(90); + lightObjs[1].position[3] = 0.0; + //direction0[0] = lightPosition0[0]; //direction0[2] = lightPosition0[2];