From 3fa2faace7d0f5eb19ee00219bc4a9421a4cc929 Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Sat, 5 Aug 2017 09:53:14 -0700 Subject: [PATCH] Fix for 3D Tiles Interactivity demo --- Apps/Sandcastle/gallery/3D Tiles Interactivity.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Apps/Sandcastle/gallery/3D Tiles Interactivity.html b/Apps/Sandcastle/gallery/3D Tiles Interactivity.html index ea23ca6d9399..7ef497425d56 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Interactivity.html +++ b/Apps/Sandcastle/gallery/3D Tiles Interactivity.html @@ -45,6 +45,8 @@ 'use strict'; //Sandcastle_Begin var viewer = new Cesium.Viewer('cesiumContainer'); +var scene = viewer.scene; +scene.globe.depthTestAgainstTerrain = true; var viewModel = { rightClickAction: 'annotate', @@ -56,7 +58,6 @@ var toolbar = document.getElementById('toolbar'); Cesium.knockout.applyBindings(viewModel, toolbar); -var scene = viewer.scene; var annotations = scene.primitives.add(new Cesium.LabelCollection()); // Set the initial camera view to look at Manhattan