X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=b46f24fc90d3770485be23581d21841e5107050b;hp=3ffaefd79aba8fd9f6c256bcf239e410b47b289e;hb=b6c863d1dad2d828e85175826084c7a34f9077ad;hpb=3dd5c9052405e410cc224d3a281e964bcee476be diff --git a/scene.c b/scene.c index 3ffaefd..b46f24f 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 = -200.0; + GLdouble far = 200.0; glViewport(0, 0, (GLsizei) w, (GLsizei) h); glMatrixMode(GL_PROJECTION);