EnvironmentComponent constructor

EnvironmentComponent({
  1. bool sky = true,
  2. Color zenith = const Color(0xFF8AB4F0),
  3. Color horizon = const Color(0xFFE0EAF5),
  4. Color ground = const Color(0xFF9E978F),
  5. Color ambientSky = const Color(0xFF9EAAC0),
  6. Color ambientGround = const Color(0xFF6B655F),
  7. double exposure = 1.0,
  8. Color background = const Color(0xFF101014),
  9. bool fog = false,
  10. Color fogColor = const Color(0xFFC8D2DC),
  11. double fogDensity = 0.02,
  12. double fogStart = 10.0,
  13. bool reflections = true,
  14. double reflectionStrength = 1.0,
  15. String skybox = '',
  16. double skyboxBlur = 0.0,
})

An environment; the defaults are a daylight sky.

Implementation

EnvironmentComponent({
  this.sky = true,
  this.zenith = const Color(0xFF8AB4F0),
  this.horizon = const Color(0xFFE0EAF5),
  this.ground = const Color(0xFF9E978F),
  this.ambientSky = const Color(0xFF9EAAC0),
  this.ambientGround = const Color(0xFF6B655F),
  this.exposure = 1.0,
  this.background = const Color(0xFF101014),
  this.fog = false,
  this.fogColor = const Color(0xFFC8D2DC),
  this.fogDensity = 0.02,
  this.fogStart = 10.0,
  this.reflections = true,
  this.reflectionStrength = 1.0,
  this.skybox = '',
  this.skyboxBlur = 0.0,
});