Skip to content

Commit b333448

Browse files
committed
set exact camera position for disable depth test when clamped to ground sandcastle
1 parent b6a7bcd commit b333448

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Apps/Sandcastle/gallery/Billboards.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,18 @@
266266
disableDepthTestDistance: Number.POSITIVE_INFINITY,
267267
},
268268
});
269-
viewer.zoomTo(viewer.entities);
269+
viewer.scene.camera.setView({
270+
destination: new Cesium.Cartesian3(
271+
-2357576.243142461,
272+
-3744417.5604860787,
273+
4581807.855903771
274+
),
275+
orientation: new Cesium.HeadingPitchRoll(
276+
5.9920811504170475,
277+
-0.6032820429886212,
278+
6.28201303164098
279+
),
280+
});
270281
}
271282

272283
Sandcastle.addToolbarMenu([

0 commit comments

Comments
 (0)