X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=67baaa4c0c0374b719c9246305124d90c52d71a7;hb=7aefab9090614501742fe496b628ffe5121d5d75;hp=d57b28e3b663ab3c0bc336f117c6de2bafb5db8f;hpb=e852b2a92a9e2878e944f1fc560595f8db4c9bb7;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index d57b28e..67baaa4 100644 --- a/scene.c +++ b/scene.c @@ -529,7 +529,7 @@ drawFloor(void) static GLfloat lightColor[] = {1.0, 1.0, 1.0, 1.0}; /* green-tinted */ static GLfloat lightPosition[4]; -static float lightAngle = 0.0, lightHeight = 20; +static float lightAngle = 10.0, lightHeight = 20; /** @@ -557,7 +557,7 @@ 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]); @@ -582,9 +582,9 @@ void init() { glMatrixMode(GL_PROJECTION); gluPerspective( - 180.0, /* field of view in degree */ + 60.0, /* field of view in degree */ 1.0, /* aspect ratio */ - 0.0, /* Z near */ + -10.0, /* Z near */ 900.0 /* Z far */ );