Skip to content
Browse files

adjusted zNear to get better clipping

  • Loading branch information...
1 parent 6391bab commit 0109bcb1c19ba9ed1356e384ff03cd7786535bef @alihelmy committed Sep 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 LessonTwo/com/onehandstand/lwjgltutorial/lessontwo/Main.java
View
2 LessonTwo/com/onehandstand/lwjgltutorial/lessontwo/Main.java
@@ -83,7 +83,7 @@ private void initOpenGL() {
// setup the camera params
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
- GLU.gluPerspective(45.0f, (float)width / (float)height, 0.0f, 100f);
+ GLU.gluPerspective(45.0f, (float)width / (float)height, 1.0f, 100f);
// setup the model (drawing) params
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();

0 comments on commit 0109bcb

Please sign in to comment.
Something went wrong with that request. Please try again.