The ShadowCast widget displays the amount of shadow that 3D objects cast in a scene over a selected amount of time. This type of analysis is useful in fields like architecture or urban planning.
// create a new ShadowCast widget
const shadowWidget = new ShadowCast({ view: view });
// add the widget to the view
view.ui.add(shadowWidget, "top-right");