threejs-worldgen
    Preparing search index...

    Interface NightLightsOptions

    Night-light settings. Plain JSON.

    interface NightLightsOptions {
        color: string;
        density: number;
        enabled: boolean;
        intensity: number;
        resolution: [number, number];
        scale: number;
        twilight: [number, number];
    }
    Index
    color: string

    Light colour (#rrggbb); sodium-orange by default.

    density: number

    Procedural field (when no callback/texture is set): how much of the planet is settled, 0..1.

    enabled: boolean

    Show lights on the night side.

    intensity: number

    Radiance of a fully lit area.

    resolution: [number, number]

    Equirectangular resolution used to bake a lights callback, [width, height].

    scale: number

    Feature size of the procedural field relative to the planet (larger = more, smaller regions).

    twilight: [number, number]

    Sun elevations (degrees, at the lit point) between which lights switch on.