X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=03f98169b3dc7a2b89d387bbcc5aa77a33e33b32;hp=b56b518adb64c05ae01c3d801b7c556562932d7d;hb=a426259db2f0953878dd443d93ec9fc885a5abfd;hpb=cc01320b8824eb601505dc5cdb101cfe8b7d1271;ds=sidebyside diff --git a/scene.c b/scene.c index b56b518..03f9816 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; + lightObjs[0].position[0] = cos(45); lightObjs[0].position[1] = 5; - lightObjs[0].position[2] = 12; + lightObjs[0].position[2] = 0;//12*sin(0); lightObjs[0].position[3] = 0.0; + /* Reposition the light source 1. */ + lightObjs[1].position[0] = 12*cos(90); + lightObjs[1].position[1] = 5; + lightObjs[1].position[2] = 0;//12*sin(90); + lightObjs[1].position[3] = 0.0; + //direction0[0] = lightPosition0[0]; //direction0[2] = lightPosition0[2];