From 7aefab9090614501742fe496b628ffe5121d5d75 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Tue, 18 Oct 2011 15:04:50 +0800 Subject: [PATCH] --- scene.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scene.c b/scene.c index 9eb68f0..67baaa4 100644 --- a/scene.c +++ b/scene.c @@ -557,11 +557,11 @@ void display() { glPushMatrix(); glDisable(GL_LIGHTING); - glColor3f(1.0, 1.0, 0.0); + glColor3f(0.0, 0.0, 0.0); /* Draw a yellow ball at the light source. */ glTranslatef(lightPosition[0], lightPosition[1], lightPosition[2]); - glutSolidSphere(90.0, 5, 5); + glutSolidSphere(1.0, 5, 5); glEnable(GL_LIGHTING); glPopMatrix(); @@ -584,7 +584,7 @@ void init() { gluPerspective( 60.0, /* field of view in degree */ 1.0, /* aspect ratio */ - 0.0, /* Z near */ + -10.0, /* Z near */ 900.0 /* Z far */ ); -- 2.20.1