Host typegenerated
Light
A directional, point or spot 3D light. Writes validate the whole candidate before changing the payload. Missing components and invalid values are errors. Rotation/position come from the entity transform.
6 members · engine 0.1.0
Light.color: ColorLinear RGB as a Color, whole or by channel. Alpha reads one and writes must keep it one; RGB is finite and nonnegative. Whole writes are atomic.Light.enabled: boolWhether this light illuminates. Switching it off leaves its entity, scripts and children active.Light.inner_angle: numberInner spotlight half-angle in radians, at least zero and strictly below outer_angle; use an order that keeps each write valid.Light.intensity: numberFinite nonnegative brightness; zero contributes no light.Light.outer_angle: numberOuter spotlight half-angle in radians, above inner_angle and at most pi/2, with distinct f32 cosines.Light.range: numberFinite positive range in world units, independent of entity scale; used by points and spots.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b