GradientSkySource constructor

GradientSkySource({
  1. Vector3? zenithColor,
  2. Vector3? horizonColor,
  3. Vector3? groundColor,
  4. Vector3? sunDirection,
  5. Vector3? sunColor,
  6. double sunSharpness = 400.0,
})

Implementation

GradientSkySource({
  Vector3? zenithColor,
  Vector3? horizonColor,
  Vector3? groundColor,
  Vector3? sunDirection,
  Vector3? sunColor,
  this.sunSharpness = 400.0,
}) : zenithColor = zenithColor ?? Vector3(0.05, 0.18, 0.55),
     horizonColor = horizonColor ?? Vector3(0.45, 0.62, 0.90),
     groundColor = groundColor ?? Vector3(0.16, 0.14, 0.12),
     sunDirection = sunDirection ?? Vector3(0.4, 0.5, 0.6),
     sunColor = sunColor ?? Vector3(3.0, 2.7, 2.2),
     super(fragmentShader: baseShaderLibrary['SkyGradientFragment']!);