SunLighting constructor

SunLighting({
  1. required DateTime simulatedDate,
  2. required bool areDirectShadowsEnabled,
})

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.

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.