Skip to content

Commit

Permalink
Remove workaround to prevent camera from going underground
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Apr 26, 2023
1 parent d7a4795 commit 9a444f8
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 @@ -294,14 +294,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 9a444f8

Please sign in to comment.