PhysicalSkySpec constructor
PhysicalSkySpec({
- Vector3? sunDirection,
- double sunAngularRadius = 0.0175,
- double rayleighCoefficient = 2.0,
- Vector3? rayleighColor,
- double mieCoefficient = 0.005,
- double mieEccentricity = 0.8,
- Vector3? mieColor,
- double turbidity = 10.0,
- Vector3? groundColor,
- double energy = 1.0,
- Map<
String, Object?> unknown = const {},
Creates the spec with the runtime defaults.
Implementation
PhysicalSkySpec({
Vector3? sunDirection,
this.sunAngularRadius = 0.0175,
this.rayleighCoefficient = 2.0,
Vector3? rayleighColor,
this.mieCoefficient = 0.005,
this.mieEccentricity = 0.8,
Vector3? mieColor,
this.turbidity = 10.0,
Vector3? groundColor,
this.energy = 1.0,
super.unknown,
}) : sunDirection = sunDirection ?? Vector3(0.4, 0.5, 0.6),
rayleighColor = rayleighColor ?? Vector3(0.26, 0.41, 0.58),
mieColor = mieColor ?? Vector3(0.69, 0.73, 0.81),
groundColor = groundColor ?? Vector3(0.12, 0.12, 0.13);