Log inGet started
Package

lighting.toolbox

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

lighting

Tools that set a scene's lighting value by value — ambient light, directional sun, sky, clear color, and point / spot / area lights — each leaving the scene in the requested lighting state. A scene lit by a placed scene setup (the lighting entity of a new world) takes these writes on the setup's own sun, ambient term and sky: each value lands as that placement's override, through the application in force, so the setup keeps its members and nothing is spawned beside them. A scene with no setup has the values written on its own sun / ambient light entities, spawned when the scene has none, and its sky entity. Scene setups, skies, scene lights and post effects are assets of their own, placed, composed and made beside this toolbox: the topics/rendering-lighting guide describes them.

Set the whole environment in one call (sun, ambient, sky, and clear color, all optional), or set each independently: the directional sun, the ambient light, or the sky — swapped from a preset word, a project material matched by name, or a material ref. Add a point light as an entity at a position. Update any point, spot, or area light by name — its color, intensity, reach, shadows, its shape controls (spot cone, area rect) and the face a spot or area light aims along. Read the full lighting state back — every light with its values, clear color, authored sky, live sky config — in the same shape the whole-scene setup accepts.

These are the interactive authoring surface, for setting a scene's lighting from execute(). The behaviour lives in the runtime lighting capability (modules.api.engine.lighting); a component, entrypoint, or the scene saver that adjusts lighting at runtime uses that capability directly, not a tool.