X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=609fdd1847694307bfa5fab3f0f9f88836ca2ce5;hp=84892823545bf75017da008d186e4cd1580d5433;hb=24e6e08e4ec1d955b25741af0276857ef0a853a5;hpb=92fbf793e39627632747a84aeaf9653e13fdb8e3 diff --git a/scene.c b/scene.c index 8489282..609fdd1 100644 --- a/scene.c +++ b/scene.c @@ -318,7 +318,7 @@ void display() { 75.0, aspect, 0.1, - 200 + 300 ); glMatrixMode(GL_MODELVIEW); @@ -355,8 +355,6 @@ void display() { glLightfv(GL_LIGHT1, GL_POSITION, lightPosition1); drawFloor(); - - drawLine(); // Draw teapot for a test object glPushMatrix(); @@ -370,21 +368,23 @@ void display() { // Draw a white ball over the light source glPushMatrix(); glDisable(GL_LIGHTING); - glColor3f(0.0, 0.0, 0.0); + glColor3f(1.0, 1.0, 1.0); glTranslatef(lightPosition0[0], lightPosition0[1], lightPosition0[2]); - glutSolidSphere(0.3, 50, 50); + glutSolidSphere(0.5, 50, 50); glEnable(GL_LIGHTING); glPopMatrix(); // Draw a white ball over the light source glPushMatrix(); glDisable(GL_LIGHTING); - glColor3f(0.0, 0.0, 0.0); + glColor3f(1.0, 1.0, 1.0); glTranslatef(lightPosition1[0], lightPosition1[1], lightPosition1[2]); - glutSolidSphere(0.3, 50, 50); + glutSolidSphere(0.5, 50, 50); glEnable(GL_LIGHTING); glPopMatrix(); + drawAxisLines(); + glPopMatrix(); glutSwapBuffers();