Fix camera zooming in 3D orthographic mode when pixelRatio is not 1 #12487
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Zooming in 3D orthographic view is broken at high camera heights when pixel ratio is not 1. See the attached video:
CleanShot.2025-02-19.at.11.52.56.mp4
This PR fixes that behavior by considering the pixel ratio in the orthographic frustum width calculation:
CleanShot.2025-02-19.at.11.53.32.mp4
Issue number and link
#12486
Testing plan
https://sandcastle.cesium.com/#c=bZBBa8MwDIX/ismpheKw65qGbYXtMih0YydfXEdNzGwpSHZCN/bfl7SX0VW3J71PesgRSlKDhxFYbRTCqLYgPkf9ce4tTOHOekuYrEdgU6zUt0GlssAT0yjAe3AUI2ADzR6EQk6e8F4dbRBYGfxZrg0avBzR4gBBt4EOoKWj8YUpY/OYIknfAcOU4gyurwhnI7DVMvrkunfaceqoZdt33j1zlpTjYrkuVkUl6RSgnhPO9eBjT5xU5rDQukwQ+2ATSHnI7hOSdiJzvNlalX/RqvGD8s3mxgOUC1ZkmhxzCG/+C0xRV+Xk/4cGso3HdjcAB3uabd1d/Xppaq2rcpK3yUQUDpavNv8C
Author checklist
CONTRIBUTORS.md
CHANGES.md
with a short summary of my change