X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=5ae5f23cf75507cfb626517607bfb935b7980a8c;hb=b690422a637485d0d02ae65321ef3a0770dad247;hp=d37b0f052796558ac5ac682cbc5f4ffe29f9b8eb;hpb=9621f7294b73aa8f7d8e6ca9227810cb79be1c92;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index d37b0f0..5ae5f23 100644 --- a/scene.c +++ b/scene.c @@ -484,8 +484,8 @@ void makeMenu() { * @param h New height */ void windowReshape(int w, int h) { - GLdouble near = -100.0; - GLdouble far = 100.0; + GLdouble near = -10.0; + GLdouble far = 10.0; glViewport(0, 0, (GLsizei) w, (GLsizei) h); glMatrixMode(GL_PROJECTION); @@ -594,7 +594,7 @@ void drawSquare(int recurseLevel, float x1, float y1, float x2, float y2) { */ void drawFloor() { -drawSquare(0, -1000.0, -1000.0, 1000.0, 1000.0); +drawSquare(0, -100.0, -100.0, 100.0, 100.0); /*if (useTexture) { glDisable(GL_TEXTURE_2D); @@ -650,7 +650,7 @@ void display() { /* Draw a yellow ball at the light source. */ glTranslatef(lightPosition[0], lightPosition[1], lightPosition[2]); - glutSolidSphere(1.0, 5, 5); + glutSolidSphere(1.0, 50, 50); glEnable(GL_LIGHTING); glPopMatrix();