EnvironmentComponent constructor
EnvironmentComponent({
- bool sky = true,
- Color zenith = const Color(0xFF8AB4F0),
- Color horizon = const Color(0xFFE0EAF5),
- Color ground = const Color(0xFF9E978F),
- Color ambientSky = const Color(0xFF9EAAC0),
- Color ambientGround = const Color(0xFF6B655F),
- double exposure = 1.0,
- Color background = const Color(0xFF101014),
- bool fog = false,
- Color fogColor = const Color(0xFFC8D2DC),
- double fogDensity = 0.02,
- double fogStart = 10.0,
- bool reflections = true,
- double reflectionStrength = 1.0,
- String skybox = '',
- 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,
});