FogOptions constructor
FogOptions({
- bool enabled = false,
- double distance = 0.0,
- double cutOffDistance = double.infinity,
- double maximumOpacity = 1.0,
- double height = 0,
- double heightFalloff = 1,
- Vector3? linearColor = null,
- double density = 0.1,
- double inScatteringStart = 0,
- double inScatteringSize = -1,
- bool fogColorFromIbl = false,
- 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);
}