outline
The public outline API — mark entities to draw with a coloured silhouette rim. Its registry (entity id → `{ color, thickness }`) is read every frame by the `@builtin::renderFeatures.outline` render feature, which draws a screen-space jump-flood rim hugging each marked entity's si…
outline
The public outline API — mark entities to draw with a coloured silhouette rim.
Its registry (entity id → { color, thickness }) is read every frame by the
@builtin::renderFeatures.outline render feature, which draws a screen-space
jump-flood rim hugging each marked entity's silhouette (uniform width, no gaps on
hard-edge or multi-part meshes). The feature is ensured live on first use, so
outline.set(entity) is all a caller needs.
local outline = require("modules.outline")
outline.set(entity, { color = { 1, 0.5, 0, 1 }, thickness = 3 })
outline.clear(entity)
outline.clearAll()
Scoped to this part · feeds back into the world's score.