Skip to content

fix: reset verticalExaggeration to 1 when terrain is disabled#139

Merged
ZTongci merged 1 commit into
alphafrom
fix/verticalExaggeration
Jun 5, 2026
Merged

fix: reset verticalExaggeration to 1 when terrain is disabled#139
ZTongci merged 1 commit into
alphafrom
fix/verticalExaggeration

Conversation

@ZTongci

@ZTongci ZTongci commented Jun 4, 2026

Copy link
Copy Markdown

Cesium's scene.verticalExaggeration affects the entire scene, not just terrain, 3D tiles height positioning is also scaled by this value.

When terrain was disabled, only the terrain provider was swapped to EllipsoidTerrainProvider but scene.verticalExaggeration retained its configured value, causing 3D tiles to remain exaggerated.

Pass verticalExaggeration={1} when terrain.enabled is false so 3D tiles return to their normal height. The configured value is restored when terrain is re-enabled.

@ZTongci ZTongci changed the base branch from beta to alpha June 4, 2026 08:42
@ZTongci ZTongci marked this pull request as ready for review June 4, 2026 09:57

@bnimit bnimit left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ZTongci ZTongci merged commit 6cfbc5c into alpha Jun 5, 2026
1 of 2 checks passed
@ZTongci ZTongci deleted the fix/verticalExaggeration branch June 5, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants