Interface AtmosphereLight

Properties of a directional light influencing the atmosphere (e.g., sun or moon).

interface AtmosphereLight {
    direction: [number, number, number];
    diskAngularDiameter?: number;
    diskLuminanceScale?: number;
    illuminance?: [number, number, number];
}

Properties

direction: [number, number, number]

Light's direction (direction to the light source).

This is expected to be normalized.

diskAngularDiameter?: number

Light disk's angular diameter in radians.

For the sun, defaults to ~0.0095120444 (0.545 degrees)

For the moon, defaults to ~0.0099134702 (0.568 degrees)

diskLuminanceScale?: number

Light disk's luminance scale.

The light disk's luminance is computed from the given illuminance and the disk's diskAngularDiameter. This scale is applied to the computed luminance value to give users more control over the sun disk's appearance.

Defaults to 1.0.

illuminance?: [number, number, number]

Light's illuminance at the top of the atmosphere.

Defaults to [1.0, 1.0, 1.0]