mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-06-22 05:48:53 +08:00
Increase z buffer range to avoid clipping while panning/rotating the 3D view
This commit is contained in:
parent
dce0aa6771
commit
fd16357b6e
@ -1115,7 +1115,7 @@ sub Resize {
|
|||||||
# is only a workaround for an incorrectly set camera.
|
# is only a workaround for an incorrectly set camera.
|
||||||
# This workaround harms Z-buffer accuracy!
|
# This workaround harms Z-buffer accuracy!
|
||||||
# my $depth = 1.05 * $self->max_bounding_box->radius();
|
# my $depth = 1.05 * $self->max_bounding_box->radius();
|
||||||
my $depth = max(@{ $self->max_bounding_box->size });
|
my $depth = 5.0 * max(@{ $self->max_bounding_box->size });
|
||||||
glOrtho(
|
glOrtho(
|
||||||
-$x/2, $x/2, -$y/2, $y/2,
|
-$x/2, $x/2, -$y/2, $y/2,
|
||||||
-$depth, $depth,
|
-$depth, $depth,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user