Constructors

Properties

Fires after every cursor / location / north-angle change. The payload is the freshly-computed sun position.

sunLight: DirLight

The DirLight the sun-study drives. Public so callers can read the current dir / colour / intensity for shaders that need them.

view: View

Accessors

  • get nightExposureFactor(): number

    Multiplier applied to the captured day Tonemap.exposure at the deep-night end of the twilight lerp (sun altitude ≤ -6°). Range [0, 1]0 is black, 1 disables darkening.

    Setting this triggers an immediate _apply() so the visible exposure tracks the new factor on the next frame, without waiting for a cursor change.

    Returns number

  • set nightExposureFactor(v: number): void

    Parameters

    • v: number

    Returns void

Methods

  • Convenience setter for (latitude, longitude) in one call — triggers a single recompute / dispatch rather than two when both coordinates change together (e.g. picking a city from a dropdown).

    Parameters

    • latitude: number
    • longitude: number

    Returns void