X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=scene.c;h=4c6bcf96170f7f557bddec501d0c9903f115d5d9;hb=82932a758c58a069fcbeca67b17e010f87f48a67;hp=16bd2fb43a80e3a5f5cf54befe49d003159b1d3e;hpb=a6ded21f45ac6b4c46f9358f291e3c70566ded0f;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index 16bd2fb..4c6bcf9 100644 --- a/scene.c +++ b/scene.c @@ -640,7 +640,7 @@ void display() { glPushMatrix(); - glTranslatef(0.0, 0.0, -2.0); + glTranslatef(0.0, 1.0, 0.0); glutWireTeapot(1); // Draw teapot for test glPopMatrix(); @@ -675,7 +675,7 @@ void init() { ); glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1); - glLightfv(GL_LIGHT0, GL_DIFFUSE, lightColor); + glLightfv(GL_LIGHT0, GL_AMBIENT|GL_SPECULAR|GL_DIFFUSE, lightColor); glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, 0.1); glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 0.05); glEnable(GL_LIGHT0);