threejs-worldgen
    Preparing search index...

    Interface Lighting

    Lighting derived from a sky state. All colours are linear RGB normalised to a max of 1.

    interface Lighting {
        ambientIntensity: number;
        exposure: number;
        fogColor: Vec3;
        hazeFade: number;
        moonColor: Vec3;
        moonIntensity: number;
        night: number;
        skyLuminance: number;
        sunColor: Vec3;
        sunIntensity: number;
    }
    Index
    ambientIntensity: number

    Night fill (hemisphere) light intensity.

    exposure: number

    Suggested toneMappingExposure (unsmoothed).

    fogColor: Vec3

    Horizon sky radiance, averaged around the compass (use as fog colour).

    hazeFade: number

    Aerial perspective 0..1: 1 in the troposphere, fading to 0 at the Kármán line (space has no haze).

    moonColor: Vec3

    Moonlight colour.

    moonIntensity: number

    Moonlight intensity.

    night: number

    0 by day … 1 at night.

    skyLuminance: number

    Zenith sky luminance.

    sunColor: Vec3

    Sunlight colour after the atmosphere.

    sunIntensity: number

    Sunlight intensity (0 below the horizon).