SceneEnvironment constructor

SceneEnvironment({
  1. bool isAtmosphereEnabled = true,
  2. bool areStarsEnabled = true,
  3. SceneLighting? lighting,
  4. Color backgroundColor = Colors.black,
})

Creates an environment object.

Parameters:

  • isAtmosphereEnabled — True if the atmosphere should be visualized, false otherwise. This includes sky and haze effects.
  • areStarsEnabled — True if stars should be visualized, false otherwise.
  • lighting — The lighting object containing information on how the scene is lit.
  • backgroundColor — The background color displayed behind any scene objects.