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