hex-world
    Preparing search index...

    Interface DayNightOptions

    interface DayNightOptions {
        time?: number;
        dayLength?: number;
        paused?: boolean;
        latitudeTilt?: number;
        sunColor?: ColorRepresentation;
        dawnColor?: ColorRepresentation;
        sunIntensity?: number;
        moonColor?: ColorRepresentation;
        moonIntensity?: number;
        dayAmbient?: ColorRepresentation;
        dayAmbientIntensity?: number;
        nightAmbient?: ColorRepresentation;
        nightAmbientIntensity?: number;
        daySky?: ColorRepresentation;
        dawnSky?: ColorRepresentation;
        nightSky?: ColorRepresentation;
        dayZenith?: ColorRepresentation;
        nightZenith?: ColorRepresentation;
    }
    Index

    Properties

    time?: number

    Starting time of day, 0–1 with 0 = midnight and 0.5 = noon. Default 0.5.

    dayLength?: number

    Real seconds per full day/night cycle when animating. Default 120.

    paused?: boolean

    Start with time frozen (drive it via setTime). Default false.

    latitudeTilt?: number

    Degrees the sun's arc leans away from straight overhead at noon, like latitude — keeps noon shadows from degenerating to points. Default 30.

    sunColor?: ColorRepresentation

    Midday sun color. Default 0xfff4d0 (matches the static default light).

    dawnColor?: ColorRepresentation

    Color the sun blends toward near the horizon (dawn/dusk). Default 0xff8a3d.

    sunIntensity?: number

    DirectionalLight intensity at full day. Default 1.4.

    moonColor?: ColorRepresentation

    Moonlight color. Default 0x8fa8d8 (cool blue).

    moonIntensity?: number

    DirectionalLight intensity under the full moon. Default 0.35.

    dayAmbient?: ColorRepresentation

    Daytime ambient color. Default 0xd0e0ff.

    dayAmbientIntensity?: number

    Daytime AmbientLight intensity. Default 0.5.

    nightAmbient?: ColorRepresentation

    Night ambient color. Default 0x2a3550.

    nightAmbientIntensity?: number

    Night AmbientLight intensity. Default 0.3.

    daySky?: ColorRepresentation

    Horizon sky/background color at midday. Default 0x8fb2d9.

    dawnSky?: ColorRepresentation

    Sky color blended in while the sun is near the horizon. Default 0xc97a4a.

    nightSky?: ColorRepresentation

    Horizon sky color at night. Default 0x0b0e1c.

    dayZenith?: ColorRepresentation

    Color straight overhead at midday — deeper than the horizon. Default 0x3f74c0.

    nightZenith?: ColorRepresentation

    Color straight overhead at night. Default 0x05060f.