X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=scene.c;h=4467e7d6c48296f4694bcf8a1fc11bf31c255653;hb=5133cc2f5c166c8f58b8989ebfc3f42341bdc668;hp=3ffaefd79aba8fd9f6c256bcf239e410b47b289e;hpb=3dd5c9052405e410cc224d3a281e964bcee476be;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index 3ffaefd..4467e7d 100644 --- a/scene.c +++ b/scene.c @@ -125,7 +125,7 @@ int lightMoving = 0, lightStartX, lightStartY; /* Time varying or user-controled variables. */ static float jump = 0.0; -static float lightAngle = 0.0, lightHeight = 20; +static float lightAngle = 0.0, lightHeight = 40; GLfloat angle = -150; /* in degrees */ GLfloat angle2 = 30; /* in degrees */ @@ -484,8 +484,8 @@ void makeMenu() { * @param h New height */ void windowReshape(int w, int h) { - GLdouble near = -1000.0; - GLdouble far = 1000.0; + GLdouble near = -50.0; + GLdouble far = 50.0; glViewport(0, 0, (GLsizei) w, (GLsizei) h); glMatrixMode(GL_PROJECTION); @@ -641,7 +641,7 @@ void display() { glPushMatrix(); //glTranslatef(0.0, 0.0, 0.0); - glutWireTeapot(30); // Draw teapot for test + glutWireTeapot(1); // Draw teapot for test glPopMatrix(); glPushMatrix();