EnvironmentSettings constructor

EnvironmentSettings({
  1. EnvironmentMap? environment,
  2. Skybox? skybox,
  3. SkyEnvironment? skyEnvironment,
  4. SunLight? sunLight,
  5. ToneMappingMode toneMapping = ToneMappingMode.pbrNeutral,
  6. double environmentIntensity = 1.0,
  7. double exposure = 1.0,
  8. bool colorGradingEnabled = false,
  9. double brightness = 1.0,
  10. double contrast = 1.0,
  11. double saturation = 1.0,
  12. double temperature = 0.0,
  13. double tint = 0.0,
  14. Vector3? lift,
  15. Vector3? gamma,
  16. Vector3? gain,
  17. bool bloomEnabled = false,
  18. double bloomThreshold = 1.0,
  19. double bloomIntensity = 0.5,
  20. double bloomScatter = 0.7,
  21. bool vignetteEnabled = false,
  22. double vignetteIntensity = 0.5,
  23. double vignetteRadius = 0.75,
  24. double vignetteSmoothness = 0.5,
  25. bool chromaticAberrationEnabled = false,
  26. double chromaticAberrationIntensity = 0.5,
  27. bool filmGrainEnabled = false,
  28. double filmGrainIntensity = 0.3,
  29. bool ambientOcclusionEnabled = false,
  30. double ambientOcclusionRadius = 0.33,
  31. double ambientOcclusionIntensity = 1.22,
  32. 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);