Builtin Library
README.md
ScreenSpaceGI
The scene's runtime bounced light, authored and persisted like any other component. Add it to an entity and nearby lit surfaces start bouncing light onto each other.
local id = entity.spawn("screen_space_gi").id
entity(id).component.add("ScreenSpaceGI", { intensity = 1.0, radius = 2.0 })
| field | effect |
|---|---|
intensity | How much of the gathered bounce reaches the image. 0 turns it off and releases the pass. |
radius | How far a surface gathers, in world units — the scale of bounce supplied. |
samples | Gather taps per pixel. More resolves a smoother gather, at linear cost. |
transfer | How much of the averaged incoming radiance is admitted, in [0, 1]. |
Every field is live: editing one in the inspector re-pushes it. Removing the last one in the scene releases the pass and returns the image to what the lighting alone produced.