Skip to content

Commit

Permalink
Merge pull request #1028 from openlayers/rm_camera_workaround
Browse files Browse the repository at this point in the history
Remove workaround to prevent camera from going underground
  • Loading branch information
gberaudo authored Apr 26, 2023
2 parents 88ee99a + 9a444f8 commit b03f4f7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/olcs/OLCesium.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,6 @@ class OLCesium {

const eventHelper = new Cesium.EventHelper();
eventHelper.add(this.scene_.postRender, OLCesium.prototype.updateTrackedEntity_, this);

// Cesium has a mechanism to prevent the camera to go under the terrain.
// Unfortunately, it is only active when all the terrain has been loaded, which:
// - does not prevent the camera to sink under terrain anymore;
// - introduce a jumping effect once all terrain has been loaded and the position of the camera is finally fixed.
// The property below enables a workaround found in the Camptocamp Cesium fork.
// See also https://github.com/AnalyticalGraphicsInc/cesium/issues/5999.
Cesium.Camera.enableSuspendTerrainAdjustment = false;
}

/**
Expand Down

0 comments on commit b03f4f7

Please sign in to comment.