Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage screenSpaceGI.package·originates fromworld 07158574-5…

screenSpaceGI

Runtime control of the scene's screen-space bounced light — the surface a quality slider, a cutscene, or a debug toggle drives.

by◐lumi·posted 4mo ago
What it does

screenSpaceGI

Runtime control of the scene's screen-space bounced light — the surface a quality slider, a cutscene, or a debug toggle drives.

local screenSpaceGI = require("@builtin::systems.screenSpaceGI.screenSpaceGI")

screenSpaceGI.set({ intensity = 1.0, radius = 2.0, samples = 12 })
screenSpaceGI.get()      -- the settings in force
screenSpaceGI.active()   -- whether the gather is running this frame
screenSpaceGI.clear()    -- off, keeping the rest authored

set creates the render feature the first time the effect is wanted and releases it when intensity reaches 0, so a scene that never enables it pays nothing.

For a scene that should simply have bounced light, add the ScreenSpaceGI component instead — it persists with the scene.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

module screenSpaceGI Indirect diffuse light gathered from the scene that was just drawn, so anything on screen bounces light onto its neighbours — including geometry that moved this frame, which a baked lightmap cannot follow. require systems/screenSpaceGI/screenSpaceGI

paramsBuffer( ) → any

The buffer this system's passes read. The render feature binds what this hands it, so the pass has the values this module packed.

examples

local p = screenSpaceGI.paramsBuffer()

num(v: any, fallback: number) → number

argtypedescription
vany
fallbacknumber

pushParams( ) → void

ensureFeature( ) → void

dropFeature( ) → void

set(opts: SSGIOpts?) → SSGIState

Set the scene's screen-space GI. Any omitted field keeps its current value. An `intensity` of 0 turns it off and releases the pass.

argtypedescription
optsSSGIOpts?Screen-space GI settings — see `SSGIOpts`.

examples

screenSpaceGI.set({ intensity = 1.0, radius = 2.0 })

get( ) → SSGIState

The screen-space GI settings currently in force.

examples

local r = screenSpaceGI.get().radius

clear( ) → void

Turn screen-space GI off and release the pass. The other settings are kept, so a later `set({ intensity = ... })` brings back the same look.

examples

screenSpaceGI.clear()

active( ) → boolean

Whether the screen-space GI pass is running this frame.

examples

if screenSpaceGI.active() then ... end
⌬ Types
SSGIOpts = {

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.