FogOptions constructor

FogOptions({
  1. bool enabled = false,
  2. double distance = 0.0,
  3. double cutOffDistance = double.infinity,
  4. double maximumOpacity = 1.0,
  5. double height = 0,
  6. double heightFalloff = 1,
  7. Vector3? linearColor = null,
  8. double density = 0.1,
  9. double inScatteringStart = 0,
  10. double inScatteringSize = -1,
  11. bool fogColorFromIbl = false,
  12. Texture? skyColor = null,
})

Implementation

FogOptions(
    {this.enabled = false,
    this.distance = 0.0,
    this.cutOffDistance = double.infinity,
    this.maximumOpacity = 1.0,
    this.height = 0,
    this.heightFalloff = 1,
    Vector3? linearColor = null,
    this.density = 0.1,
    this.inScatteringStart = 0,
    this.inScatteringSize = -1,
    this.fogColorFromIbl = false,
    this.skyColor = null}) {
  this.linearColor = linearColor ?? Vector3(1, 1, 1);
}