GradientSkySpec constructor
GradientSkySpec({
- Vector3? zenithColor,
- Vector3? horizonColor,
- Vector3? groundColor,
- Vector3? sunDirection,
- Vector3? sunColor,
- double sunSharpness = 400.0,
Creates the spec with the runtime defaults.
Implementation
GradientSkySpec({
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);