Skip to content

Commit

Permalink
Orthographic camera: fix missing near and far parameters (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou authored Oct 21, 2024
1 parent cc5b195 commit 3a3b96c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/base/src/3dview/mainview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,9 @@ export class MainView extends React.Component<IProps, IStates> {
width / -2,
width / 2,
height / 2,
height / -2
height / -2,
CAMERA_NEAR,
CAMERA_FAR
);
this._camera.zoom = zoomFactor;
this._camera.updateProjectionMatrix();
Expand Down

0 comments on commit 3a3b96c

Please sign in to comment.