Skip to content

Commit

Permalink
Tweak sandcastle example
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Dec 4, 2017
1 parent 2d855b8 commit c8cd6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Apps/Sandcastle/gallery/3D Tiles Clipping Planes.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
});
var scene = viewer.scene;

var clipObjects = ['BIM', 'Point Cloud', 'Instanced', 'Model',];
var clipObjects = ['BIM', 'Point Cloud', 'Instanced', 'Model'];
var viewModel = {
debugBoundingVolumesEnabled : false,
edgeStylingEnabled : true,
Expand Down Expand Up @@ -105,7 +105,7 @@
var scratchPlane = new Cesium.Plane(Cesium.Cartesian3.UNIT_X, 0.0);
function createPlaneUpdateFunction(plane, transform) {
return function () {
plane.distance = Cesium.Math.lerp(plane.distance, targetY, 0.1);
plane.distance = targetY;

var transformedPlane = Cesium.Plane.transform(plane, transform, scratchPlane);
transformedPlane.distance = -transformedPlane.distance;
Expand Down

0 comments on commit c8cd6fa

Please sign in to comment.