X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=scene.c;h=6a9399260d853c9e3a0d74e984e85adb05130ee7;hb=a4bfff194cb2440cbab29c871a03130877cdad19;hp=aa3a80ba7062b4ac66d7c1ed951f7d8582f213f7;hpb=a06728bc8ad584aafd216c2a3bfd7b9d9b4305d3;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index aa3a80b..6a93992 100644 --- a/scene.c +++ b/scene.c @@ -557,7 +557,7 @@ void display() { glPushMatrix(); glDisable(GL_LIGHTING); - glColor3f(0.0, 0.0, 0.0); + glColor3f(1.0, 1.0, 1.0); /* Draw a yellow ball at the light source. */ glTranslatef(lightPosition[0], lightPosition[1], lightPosition[2]); @@ -590,8 +590,8 @@ void init() { glMatrixMode(GL_MODELVIEW); gluLookAt( - 0.0, -10.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, 60.0, /* eye is at (0,8,60) */ + 0.0, 8.0, 999.0, /* center is at (0,8,0) */ 0.0, 1.0, 0.0 /* up is in postivie Y direction */ );