Skip to content
Shapemetry

Model - Light

API reference for src/document/light on @huukhanhnguyen/model, reachable from ..

See the Guide for the ModelJSON / evaluate pipeline.

API reference

Signatures are generated from the live package .d.ts - not hand-written.

collectLights

function

Every light in the model, in world space — the ones standing loose in an object's chain plus the ones inside every block placement, moved by that placement's own matrix. Place a lamp component twice and its bulb comes back twice, in the two right places, with no per-placement machinery: the light is an entity, so transformEntity already knows how to move it.

collectLights(frame: readonly RenderFrameSlice[]): LightEntity[]
Last updated: 📖 1 min readEdit on GitHub