Fix Z-fighting in Ortho view, Issue #1483

This commit is contained in:
Hans L 2015-11-13 05:06:45 -06:00
parent 8819d6bde6
commit 28d96969e1

View file

@ -105,7 +105,7 @@ void GLView::setupCamera()
double height = dist * tan(cam.fov/2*M_PI/180);
glOrtho(-height*aspectratio, height*aspectratio,
-height, height,
-far_far_away, +far_far_away);
-100*dist, +100*dist);
break;
}
}
@ -130,7 +130,7 @@ void GLView::setupCamera()
double height = dist * tan(cam.fov/2*M_PI/180);
glOrtho(-height*aspectratio, height*aspectratio,
-height, height,
-far_far_away, +far_far_away);
-100*dist, +100*dist);
break;
}
}