From: Ash Tyndall Date: Thu, 20 Oct 2011 03:25:01 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=a185b770048a8f9bca29b9b10593998cc9c8d2a3;p=atyndall%2Fcits2231.git --- diff --git a/globals.c b/globals.c index cc0f908..b441f8c 100644 --- a/globals.c +++ b/globals.c @@ -56,8 +56,8 @@ GLfloat angle = -150; /* in degrees */ GLfloat angle2 = 30; /* in degrees */ /* Near and far parameters - calculates scene size */ -GLfloat near = -10; -GLfloat far = 10; +GLfloat near = -15; +GLfloat far = 15; /* Near and far clipping planes - calculates clipping planes */ GLfloat nearClip = -200; diff --git a/scene.c b/scene.c index dde2125..95c19c5 100644 --- a/scene.c +++ b/scene.c @@ -191,7 +191,7 @@ void windowReshape(int w, int h) { far*(GLfloat)h/(GLfloat)w, -100, 100); else glOrtho(near*(GLfloat)w/(GLfloat)h, - far*(GLfloat)w/(GLfloat)h, near, far, -100, 100); + far*(GLfloat)w/(GLfloat)h, near, far, nearClip, farClip); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); }