From af5908c1fd4d3ef82dc576f7e44ef1b09d7a3a6c Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 22 Oct 2011 14:56:04 +0800 Subject: [PATCH] --- scene.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scene.c b/scene.c index bbc0d33..9a737b3 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] = 9*cos(0); lightObjs[0].position[1] = 5; - lightObjs[0].position[2] = 9*sin(45); + lightObjs[0].position[2] = 9*sin(0); lightObjs[0].position[3] = 0.0; /* Reposition the light source 1. */ - lightObjs[1].position[0] = 9*cos(45 + 200); + lightObjs[1].position[0] = 9*cos(180); lightObjs[1].position[1] = 5; - lightObjs[1].position[2] = 9*sin(45 + 200); + lightObjs[1].position[2] = 9*sin(180); lightObjs[1].position[3] = 0.0; //direction0[0] = lightPosition0[0]; -- 2.20.1