Fix Z-fighting in Ortho view, Issue #1483
This commit is contained in:
parent
8819d6bde6
commit
28d96969e1
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue