From 87b1e4d4ecf968eb100b8d93f929c0574c7f08d0 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Fri, 21 Oct 2011 11:16:30 +0800 Subject: [PATCH] --- scene.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene.c b/scene.c index 2a3b61a..2730c4f 100644 --- a/scene.c +++ b/scene.c @@ -318,12 +318,13 @@ void display() { glLoadIdentity(); gluLookAt( - 15.0 + (zoom*zoomFactor), 0.0, 15.0 + (zoom*zoomFactor), /* eye is at (x,y,z) */ + 0.0, 0.0, 15.0 + (zoom*zoomFactor), /* eye is at (x,y,z) */ 0.0, 0.0, 0.0, /* center is at (x,y,z) */ 0.0, 10.0, 0.0 /* up is in postivie Y direction */ ); glRotatef(50.0, 1.0, 0.0, 0.0); + glRotatef(15.0, 0.0, 1.0, 0.0); /* Reposition the light source. */ lightPosition[0] = 12*cos(lightAngle); -- 2.20.1