Skip to content

Commit

Permalink
feat: apply zoom to max zoom
Browse files Browse the repository at this point in the history
Ensure that zooming works for wide angled fisheyes.
Apply zoom to max value.
  • Loading branch information
oscarlorentzon committed Mar 8, 2024
1 parent 2546f45 commit 3607479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/RenderCamera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export class RenderCamera {
aspect);
});

const fovMax = 125;
const fovMax = this._yToFov(this._fovToY(125, 0), zoom);
const minFov = Math.min(...fovs) * 0.995;
const vFovFill = Math.min(minFov, fovMax);
if (renderMode === RenderMode.Fill) {
Expand Down

0 comments on commit 3607479

Please sign in to comment.