Log inGet started
·
renderfeature · drop-in viewer
asset⌬ renderfeaturerenderFeatureprimary: init.luau·part ofpackage restirLighting.package·originates fromworld 07158574-5…

restirDirect.renderFeature

The render feature that runs resampled direct lighting.

by◐lumi·posted 4mo ago
What it does

restirDirect

The render feature that runs resampled direct lighting.

Four compute passes in afterOpaqueLit (orders 92-95) and a composite at 96, ahead of the air that hazes the opaque scene and of the transparent phase: candidates and temporal reuse over a cell grid, spatial reuse between cells, per-pixel shading of the source each cell settled on, then a cell-aware average of that light onto the frame.

It starts and stops with the source registry in @builtin::systems.restirLighting.restirLighting, which is also where the settings live.

Interface

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

conforms to

zero/source-extract/v2

Resampled direct lighting. Four compute passes after lighting, then a composite. restir_sample one cell per 2x2 pixels draws a few sources at random, resamples them to one, and merges what the cell held last frame. restir_spatial each cell borrows from a few neighbours, evaluated against its own surface. restir_resolve each pixel shades the source its cell settled on, weighted so the single sample stands for the whole set. restir_denoise each pixel averages that light over the cells around it and composites the result onto the frame. What each pixel pays is `candidates + spatialSamples + 1` evaluations. None of those terms is the number of registered sources, which is the point: a scene with a thousand practicals shades in the same time as one with ten. `render` runs once a frame and the passes it enqueues run once per render target — the window, an offscreen capture, an RTT camera. Each pass therefore works its own frame's cell grid out from the textures it is handed, and the dispatch here covers the widest grid any target of this frame has asked for. The sources and the settings arrive through the buffers `@builtin::systems.restirLighting.restirLighting` owns; the feature starts and stops with that registry.

render(ctx: ?) → void

argtypedescription
ctx?

teardown( ) → void

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.