How to use Cesium Sandbox features?

Im really new to coding and am now working on a Cesium project that is visualizing 3d models on a city scale. I really want to add shadows, especially the shadow tools that are in Cesium sandbox but copying and pasting the code into Visual Studio Code doesn’t work. I’m guessing because the toolbars and stuff have stuff like Sandcastle.addToggleButton in the code which wont transfer over to my project. How would I go about using that code so it would work with my project?

Include the following CSS and JavaScript file into your HTML.

https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/templates/bucket.css
https://sandcastle.cesium.com/Sandcastle-header.js

Refer to this sample.

1 Like