API: assemblage
Interface: Light
lifecycle-kit
lifecycle-kit / assemblage / Light
Interface: Light
Defined in: assemblage/light.ts:12
A directional light in the same abstract space the forms live in.
Properties
ambient
readonlyambient:number
Defined in: assemblage/light.ts:22
Floor brightness on the unlit side, 0..1.
A design constraint rather than a physical one: a creature has to stay readable everywhere, and a physically honest zero would put half of a small sprite into an unreadable silhouette.
direction
readonlydirection:Vec2
Defined in: assemblage/light.ts:14
Direction the light travels. Need not be normalised.
