VirtualLighting constructor

VirtualLighting({
  1. required bool areDirectShadowsEnabled,
})

Creates a virtual lighting for illuminating 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:

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