interface SkyParams {
    enabled?: boolean;
    groundColor?: [number, number, number];
    horizonBlend?: number;
    horizonColor?: [number, number, number];
    renderModes?: number[];
    skyColor?: [number, number, number];
    sunAngularSize?: number;
    sunColor?: [number, number, number];
    sunDirection?: [number, number, number];
    sunEnabled?: boolean;
    sunGlowIntensity?: number;
    sunGlowSize?: number;
    worldUp?: [number, number, number];
}

Properties

enabled?: boolean

Whether to draw the procedural sky background at all. When false, the renderer falls through to whatever was already in the clear buffer. Default true.

groundColor?: [number, number, number]

Below-horizon ground colour. Default [0.58, 0.64, 0.60].

horizonBlend?: number

Angular width of the horizon blend band. Default 0.5.

horizonColor?: [number, number, number]

Horizon colour. Default [0.66, 0.72, 0.74].

renderModes?: number[]

Render modes the sky background fires in. The renderer ANDs this with SkyParams.enabled.

Default: [NavigationRender, DetailedRender, RealisticRender] — sky renders in every mode when enabled is true. Restrict the list to suppress the sky in specific modes (for example, drop NavigationRender to skip the sky pass during camera motion).

skyColor?: [number, number, number]

Sky zenith colour. Default [0.74, 0.80, 0.88].

sunAngularSize?: number

Sun disc angular diameter in degrees. Default 3.

sunColor?: [number, number, number]

Sun disc + corona colour. Default [1.0, 0.97, 0.82].

sunDirection?: [number, number, number]

World-space direction toward the sun (sign is the opposite of a DirLight's dir, which points the way photons travel). Need not be normalized. Default [0.577, 0.577, 0.577].

sunEnabled?: boolean

Draw a sun disc + glow. Default true.

sunGlowIntensity?: number

Peak intensity of the sun glow. Default 0.25.

sunGlowSize?: number

Exponent controlling how tightly the glow hugs the disc. Default 16.

worldUp?: [number, number, number]

World-space "up" direction. Default [0, 0, 1] (Z-up).