EnvironmentSettings constructor
EnvironmentSettings({
- EnvironmentMap? environment,
- Skybox? skybox,
- SkyEnvironment? skyEnvironment,
- SunLight? sunLight,
- ToneMappingMode toneMapping = ToneMappingMode.pbrNeutral,
- double environmentIntensity = 1.0,
- double exposure = 1.0,
- bool colorGradingEnabled = false,
- double brightness = 1.0,
- double contrast = 1.0,
- double saturation = 1.0,
- double temperature = 0.0,
- double tint = 0.0,
- Vector3? lift,
- Vector3? gamma,
- Vector3? gain,
- bool bloomEnabled = false,
- double bloomThreshold = 1.0,
- double bloomIntensity = 0.5,
- double bloomScatter = 0.7,
- bool vignetteEnabled = false,
- double vignetteIntensity = 0.5,
- double vignetteRadius = 0.75,
- double vignetteSmoothness = 0.5,
- bool chromaticAberrationEnabled = false,
- double chromaticAberrationIntensity = 0.5,
- bool filmGrainEnabled = false,
- double filmGrainIntensity = 0.3,
- bool ambientOcclusionEnabled = false,
- double ambientOcclusionRadius = 0.33,
- double ambientOcclusionIntensity = 1.22,
- double ambientOcclusionBias = 0.07,
Creates a settings snapshot. Most callers use Scene.environmentSettings
or EnvironmentSettings.lerp instead of this directly.
Implementation
EnvironmentSettings({
this.environment,
this.skybox,
this.skyEnvironment,
this.sunLight,
this.toneMapping = ToneMappingMode.pbrNeutral,
this.environmentIntensity = 1.0,
this.exposure = 1.0,
this.colorGradingEnabled = false,
this.brightness = 1.0,
this.contrast = 1.0,
this.saturation = 1.0,
this.temperature = 0.0,
this.tint = 0.0,
Vector3? lift,
Vector3? gamma,
Vector3? gain,
this.bloomEnabled = false,
this.bloomThreshold = 1.0,
this.bloomIntensity = 0.5,
this.bloomScatter = 0.7,
this.vignetteEnabled = false,
this.vignetteIntensity = 0.5,
this.vignetteRadius = 0.75,
this.vignetteSmoothness = 0.5,
this.chromaticAberrationEnabled = false,
this.chromaticAberrationIntensity = 0.5,
this.filmGrainEnabled = false,
this.filmGrainIntensity = 0.3,
this.ambientOcclusionEnabled = false,
this.ambientOcclusionRadius = 0.33,
this.ambientOcclusionIntensity = 1.22,
this.ambientOcclusionBias = 0.07,
}) : lift = lift ?? Vector3.zero(),
gamma = gamma ?? Vector3.all(1.0),
gain = gain ?? Vector3.all(1.0);