export type RGB = [number, number, number]; type ReactiveValue = T | (() => T); /** Scene grading at a given hour. */ export interface DayLightingKey { hour: number; /** Light multiplier applied to the scene (tints and darkens it). */ ambient: RGB; /** Color saturation: `1` = unchanged, `0.3` = washed-out night. */ saturation: number; /** Edge darkening, `0` to `1`. */ vignette: number; /** How dark it is for artificial lights: `0` = off, `1` = full night. */ lights: number; } export interface DayLighting { ambient: RGB; saturation: number; vignette: number; lights: number; } /** * Default day cycle: blue moonlight at night, pink dawn, neutral day, * golden hour, then a purple dusk before night. */ export declare const DEFAULT_DAY_CYCLE: DayLightingKey[]; export declare function sampleDayLighting(hour: number, keys?: DayLightingKey[]): DayLighting; export interface DayNightLight { x: ReactiveValue; y: ReactiveValue; /** Reach of the light on the ground, in world pixels. Default: `160` */ radius?: number; /** Default: warm lamp `#ffb45a` */ color?: string | number; /** Default: `1` */ intensity?: number; /** Visible glow around the source (bloom), `0` to `1.5`. Default: `0.6` */ halo?: number; /** Size of the glow relative to `radius`. Default: `0.22` */ haloSize?: number; /** Flame-like flicker amount, `0` to `1`. Default: `0` */ flicker?: number; /** * How dark it must be before this light switches on (`0` to `1`). * Staggered thresholds make street lamps light up one by one. Default: random per light. */ threshold?: number; /** Explicit schedule in hours, e.g. `[19, 23.5]` for a window. Overrides `threshold`. */ schedule?: [number, number]; /** Set to `false` to switch the light off manually. */ enabled?: ReactiveValue; } /** * How much a light is switched on (`0` to `1`) at `hour`, including the flame flicker. * Lights fade in and out smoothly. * * @param realTime - real time in seconds, drives the flicker */ export declare function lightLevel(light: DayNightLight, index: number, hour: number, darkness: number, realTime: number): number; export {}; //# sourceMappingURL=lighting.d.ts.map