X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=c30c497142678090b05157d53de1246775e1a263;hp=391cd46e361572853c9f530a9734fa022083729e;hb=dceb293de90f7794cfc9ced75740fd34a9cf2b86;hpb=94093fb9572b307fbe6a4c1758ee30e9e8233020 diff --git a/scene.c b/scene.c index 391cd46..c30c497 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); @@ -417,7 +418,7 @@ int main(int argc, char **argv) { gluPerspective( 40.0, /* field of view in degree */ 1.0, /* aspect ratio */ - 10.0, /* Z near */ + -10, /* Z near */ 1000.0 /* Z far */ );