From: Ash Tyndall Date: Thu, 20 Oct 2011 12:33:57 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=784fe452a7e11da5bf8879f5c1f988d038b9f857;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 391cd46..24de6b5 100644 --- a/scene.c +++ b/scene.c @@ -407,6 +407,7 @@ int main(int argc, char **argv) { glShadeModel(GL_SMOOTH); // Enables Smooth Shading glClearColor(0.0f, 0.0f, 0.0f, 0.0f); // Black Background glClearDepth(1.0f); // Depth Buffer Setup + glDepthRange(0,1); glEnable(GL_DEPTH_TEST); // Enables Depth Testing glDepthFunc(GL_LEQUAL); // the type glEnable(GL_CULL_FACE);