| id | lightinsystem |
|---|---|
| title | Lighting System |
| sidebar_position | 3 |
The Lighting System lets you add illumination to your scenes using common real-time light types. Under the hood it wires up the required ECS components, provides an editor-friendly visual handle, and tags the light so the renderer can pick it up.
Use for sunlight or distant key lights. Orientation (rotation) defines its direction.
let sun = createEntity()
createDirLight(entityId: sun)Omni light that radiates equally in all directions from a position.
let bulb = createEntity()
createPointLight(entityId: bulb)Cone-shaped light with a position and direction.
let spot = createEntity()
createSpotLight(entityId: spot)Rect/area emitter used to mimic panels/windows; position and orientation matter.
let panel = createEntity()
createAreaLight(entityId: panel)