From: norly Date: Thu, 27 Oct 2011 14:36:36 +0000 (+0100) Subject: Fixed zNear, zFar values for gluPerspective. X-Git-Url: https://git.enpas.org/?p=grGL.git;a=commitdiff_plain;h=a72b8a15465e907411dc9339586c3a0e62086d21 Fixed zNear, zFar values for gluPerspective. --- diff --git a/src/main.c b/src/main.c index 7825a2d..e79ae09 100644 --- a/src/main.c +++ b/src/main.c @@ -55,7 +55,7 @@ void on_reshape(int w, int h) // Set up the Projection transformation glMatrixMode(GL_PROJECTION); glLoadIdentity(); - gluPerspective(90, (GLfloat)w/(GLfloat)h, 0.0, 5.0); + gluPerspective(90, (GLfloat)w/(GLfloat)h, 0.0001, 1000.0); // Switch to Model/view transformation for drawing objects glMatrixMode(GL_MODELVIEW);