From f369e5b4fb935813043425ddde66098775615261 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Thu, 20 Oct 2011 11:21:27 +0800 Subject: [PATCH] --- globals.c | 4 ++-- scene.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/globals.c b/globals.c index 818fcf2..a95bfbd 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 */ -GLfloat near = -10; -GLfloat far = 10; +GLfloat near = -20; +GLfloat far = 20; /* Zoom factor for mouse movements */ GLfloat zoomFactor = 1.0; diff --git a/scene.c b/scene.c index 2746652..c7cd7a5 100644 --- a/scene.c +++ b/scene.c @@ -188,10 +188,10 @@ void windowReshape(int w, int h) { glLoadIdentity(); if (w <= h) glOrtho(near, far, near*(GLfloat)h/(GLfloat)w, - far*(GLfloat)h/(GLfloat)w, near, far); + far*(GLfloat)h/(GLfloat)w, -100, 100); else glOrtho(near*(GLfloat)w/(GLfloat)h, - far*(GLfloat)w/(GLfloat)h, near, far, near, far); + far*(GLfloat)w/(GLfloat)h, near, far, -100, 100); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); } -- 2.20.1