Prevent OpenGL scene from Z clipping
This commit is contained in:
parent
1ab8efba7f
commit
70c032868a
@ -588,9 +588,10 @@ sub Resize {
|
|||||||
|
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
my $depth = 10 * max(@{ $self->max_bounding_box->size });
|
||||||
glOrtho(
|
glOrtho(
|
||||||
-$x/2, $x/2, -$y/2, $y/2,
|
-$x/2, $x/2, -$y/2, $y/2,
|
||||||
-200, 10 * max(@{ $self->max_bounding_box->size }),
|
-$depth, 2*$depth,
|
||||||
);
|
);
|
||||||
|
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
|
Loading…
Reference in New Issue
Block a user