Current project progress; adding lighting and perspective functionality
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index b869afa..d57ce23 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -584,8 +584,8 @@ void init() {
   gluPerspective(\r
      40.0,  /* field of view in degree */ \r
       1.0,  /* aspect ratio */ \r
-     20.0,  /* Z near */\r
-    100.0   /* Z far */ \r
+      0.0,  /* Z near */\r
+    900.0   /* Z far */\r
     );\r
   \r
   glMatrixMode(GL_MODELVIEW);\r
@@ -634,7 +634,7 @@ int main(int argc, char **argv) {
   glEnable(GL_DEPTH_TEST); // Enables Depth Testing\r
   glDepthFunc(GL_LEQUAL);  // the type\r
 \r
-  glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);          // Really Nice Perspective Calculations\r
+  glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);\r
 \r
   glutReshapeFunc(windowReshape);\r
   glutDisplayFunc(display);\r

UCC git Repository :: git.ucc.asn.au