From a4bfff194cb2440cbab29c871a03130877cdad19 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Tue, 18 Oct 2011 15:11:04 +0800 Subject: [PATCH] --- scene.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scene.c b/scene.c index 93d2171..6a93992 100644 --- a/scene.c +++ b/scene.c @@ -556,14 +556,14 @@ void display() { glutSolidTeapot(1); // Draw teapot for test glPushMatrix(); - //glDisable(GL_LIGHTING); + glDisable(GL_LIGHTING); glColor3f(1.0, 1.0, 1.0); /* Draw a yellow ball at the light source. */ glTranslatef(lightPosition[0], lightPosition[1], lightPosition[2]); glutSolidSphere(1.0, 5, 5); - //glEnable(GL_LIGHTING); + glEnable(GL_LIGHTING); glPopMatrix(); glPopMatrix(); @@ -591,7 +591,7 @@ void init() { glMatrixMode(GL_MODELVIEW); gluLookAt( 0.0, 8.0, 60.0, /* eye is at (0,8,60) */ - 0.0, 8.0, 0.0, /* center is at (0,8,0) */ + 0.0, 8.0, 999.0, /* center is at (0,8,0) */ 0.0, 1.0, 0.0 /* up is in postivie Y direction */ ); -- 2.20.1