Scene constructor

Scene({
  1. Color backgroundColor = const Color(0xFF0A0A1A),
  2. Color ambientColor = const Color(0xFF202030),
  3. double fogDensity = 0,
  4. Color fogColor = const Color(0xFF000000),
  5. Color? skyZenithColor,
  6. Color? skyGroundColor,
  7. double fogMaxOpacity = 1.0,
  8. double fogCutoffDistance = 0,
  9. double fogHeightFalloff = 0,
})

Implementation

Scene({
  this.backgroundColor = const Color(0xFF0A0A1A),
  this.ambientColor = const Color(0xFF202030),
  this.fogDensity = 0,
  this.fogColor = const Color(0xFF000000),
  this.skyZenithColor,
  this.skyGroundColor,
  this.fogMaxOpacity = 1.0,
  this.fogCutoffDistance = 0,
  this.fogHeightFalloff = 0,
}) : assert(fogMaxOpacity >= 0 && fogMaxOpacity <= 1),
     assert(fogCutoffDistance >= 0),
     assert(fogHeightFalloff >= 0);