Skip to content

API Interface SkyLighting

github-actions[bot] edited this page Nov 29, 2026 · 4 revisions

Interface: SkyLighting

Defined in: src/engine/sky/skyFormat.ts:123

Properties

bake

bake: boolean;

Defined in: src/engine/sky/skyFormat.ts:131

Bake the sky to a cubemap for image-based lighting and reflections.


bakeSize

bakeSize: number;

Defined in: src/engine/sky/skyFormat.ts:133

Pixels per side of each cube face of the bake: 32–512.


driveSunLight

driveSunLight: boolean;

Defined in: src/engine/sky/skyFormat.ts:125

Point the World's main directional light along the sun (the moon at night), with its colour.


moonIntensity

moonIntensity: number;

Defined in: src/engine/sky/skyFormat.ts:129

The driven light's intensity under a full moon.


rebakeHours

rebakeHours: number;

Defined in: src/engine/sky/skyFormat.ts:135

Rebake when the time of day has moved this many hours since the last bake.


rebakeInterval

rebakeInterval: number;

Defined in: src/engine/sky/skyFormat.ts:137

At most one rebake per this many seconds while settings change.


sunIntensity

sunIntensity: number;

Defined in: src/engine/sky/skyFormat.ts:127

The driven light's intensity at noon on a clear day.

Clone this wiki locally