PhysicalSkySpec constructor

PhysicalSkySpec({
  1. Vector3? sunDirection,
  2. double sunAngularRadius = 0.0175,
  3. double rayleighCoefficient = 2.0,
  4. Vector3? rayleighColor,
  5. double mieCoefficient = 0.005,
  6. double mieEccentricity = 0.8,
  7. Vector3? mieColor,
  8. double turbidity = 10.0,
  9. Vector3? groundColor,
  10. double energy = 1.0,
})

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,
}) : 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);