X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=305f79ef471d5dae67740bd04d6f2bc62bdeff33;hp=de9a52efef715a0f15e9ca5e61403857ea2575ef;hb=6ac25f4da2272bf30a02fbe638c1ab7b01eace86;hpb=4ef6b7438591d5aab5f403ac1d23641e81d514e0 diff --git a/scene.c b/scene.c index de9a52e..305f79e 100644 --- a/scene.c +++ b/scene.c @@ -640,7 +640,7 @@ void display() { glPushMatrix(); - //glTranslatef(0.0, 0.0, 0.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, lightColor); glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, 0.1); glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 0.05); glEnable(GL_LIGHT0); @@ -715,7 +715,7 @@ int main(int argc, char **argv) { glClearDepth(1.0f); // Depth Buffer Setup glEnable(GL_DEPTH_TEST); // Enables Depth Testing glDepthFunc(GL_LEQUAL); // the type - //glEnable(GL_CULL_FACE); + glEnable(GL_CULL_FACE); glEnable(GL_TEXTURE_2D); glLineWidth(1.0);