SunLighting

constructor(simulatedDate: Instant, areDirectShadowsEnabled: Boolean)

Creates a sun lighting for lighting a scene. Shadows cast by the terrain are not supported. Enabling shadows can impact rendering performance, depending on the amount of data in the scene.

Since

300.0.0

Parameters

simulatedDate

The current date and time of the simulated sun in UTC.

areDirectShadowsEnabled

True if shadows cast by the sun are shown, false otherwise.