X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=4615b6383c1f2ea6d576a82f36ae5e23488d6c02;hp=391cd46e361572853c9f530a9734fa022083729e;hb=cc59a82104f5650c0c8cc9496335de890f21d731;hpb=94093fb9572b307fbe6a4c1758ee30e9e8233020 diff --git a/scene.c b/scene.c index 391cd46..4615b63 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 */ + 0.0, /* Z near */ 1000.0 /* Z far */ );