// Enable depth testing so things behind the terrain disappear. viewer.scene.globe.depthTestAgainstTerrain = true;