From fc3ea14064066eaac7d0253fd5d4a3c2aa87457d Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Tue, 18 Oct 2011 20:15:17 +0800 Subject: [PATCH] --- scene.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scene.c b/scene.c index c37c4a3..74136de 100644 --- a/scene.c +++ b/scene.c @@ -618,6 +618,8 @@ void display() { 0.0, 1.0, 0.0 /* up is in postivie Y direction */ ); + glRotatef(45.0, 1.0, 0.0, 0.0); + /* Reposition the light source. */ lightPosition[0] = 12*cos(lightAngle); lightPosition[1] = lightHeight; @@ -626,7 +628,7 @@ void display() { glPushMatrix(); /* Perform scene rotations based on user mouse input. */ - //glRotatef(angle2, 1.0, 0.0, 0.0); + glRotatef(angle, 0.0, 1.0, 0.0); glLightfv(GL_LIGHT0, GL_POSITION, lightPosition); -- 2.20.1