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

taau.renderFeature

The pass that turns a smaller render into a display-resolution image.

by◐lumi·posted 4mo ago
What it does

taau.renderFeature

The pass that turns a smaller render into a display-resolution image.

Its passes do three things on every frame drawn:

  1. Move the sample. renderer.setProjectionJitter states a sequence of Halton points inside the pixel, in units of the scene's pixels, which every view walks by its own count of renders — so consecutive renders of a view sample the same continuous image on different grids. The resolve reads where this render sampled from @frame.camera ([13].xy).
  2. Resolve. taau_resolve runs at the head of the display stage, where the frame is already at the display's resolution and the UI has not landed on it yet. It reads the presented colour, the scene's depth and velocity, and the accumulation the view's previous render wrote, and writes this render's.
  3. Composite. A fragment pass puts that accumulation back on the frame.

After the resolve, stable_depth (@builtin::systems.antiAliasing.stable_depth) keeps for every scene pixel the depth sample taken nearest its centre, and a fragment pass whose output is @scene.depth (restates = true) hands it back to the frame, so every pass after the reconstruction reads a depth and a camera with no sub-pixel offset. Those two name @scene.depth and the kept depth in whenRead: on a frame where nothing after them reads the depth (a pass binding @scene.depth or drawing with a shader that samples it, or an effect of the post-process chain that samples it) they are left out, and the first render that has such a reader again starts the kept depth over from its own. A third pass, whose output is @frame.camera (restates = true), restates the camera on every frame, so a pass after the reconstruction that reads the camera and no depth reads it with no sub-pixel offset as well. The resolve reads the raster's own depth ahead of them and keeps neither.

The accumulation is a history target (history = true): the engine keeps one pair of images per view, hands the resolve the previous one to read and the current one to write, and states in the target's state buffer whether the previous one holds that view's last render (it does not on the view's first render, after a cut or after a resize, and the resolve then starts over from the frame alone). It is created with screenSpace = "composite", which is what keeps it at the presented resolution while the scene renders smaller — a scene-space target would follow the scene down and there would be nothing to reconstruct onto.

Sixteen sample points, where an antialiasing accumulation uses eight: reconstructing a display pixel the scene never rasterized takes samples spread over more than one scene pixel.

The feature states its inputs (dependsOn = { "settings", "viewport" } and an inputs function answering the render scale's sample count and the parameter buffers @builtin::systems.temporalUpscale.temporalUpscale hands over), so its render runs when one of them moves and the passes it handed over stand in every other frame.

teardown returns every view's projection to pixel centres and releases its targets.

Interface

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

conforms to

zero/source-extract/v2

Temporal upsampling — a display-resolution image out of a smaller render. The scene is rasterized at whatever the render scale asks for and reaches the display through an upscale, which invents nothing: one frame carries only as many distinct samples as the scene had pixels. This feature moves the projection's sample point inside the pixel on every render of a view and accumulates the renders along the scene's own motion, so the standing result holds detail from several different sample grids rather than one. The accumulation itself is `taau_resolve`. This feature owns what surrounds it: the display-resolution accumulation history, and the sequence of points inside the pixel the renders sample (`renderer.setProjectionJitter`), which every view walks by its own count of renders. The reconstruction is followed by `stable_depth` (`@builtin::systems.antiAliasing.stable_depth`), which keeps for every scene pixel the depth sample taken nearest its centre for as long as nothing there moves, and a pass that restates the frame's depth from it (`output = "@scene.depth", restates = true`): every pass after the reconstruction reads that depth and the camera with no sub-pixel offset, so an outline or a pattern an effect draws from depth holds still with the picture it draws over. Those two run on a frame where something after the reconstruction reads the depth (`whenRead`); every frame restates the camera (`output = "@frame.camera", restates = true`), so a pass after the reconstruction reading the camera alone reads it with no offset either. The passes stand from frame to frame: `render` runs when the viewport, the render scale (which sets how many points the sequence visits) or the parameter buffers `@builtin::systems.temporalUpscale.temporalUpscale` hands over change. Where inside the pixel a render sampled is the engine's own, read on the GPU from `@frame.camera` and the history targets' state. Parameters arrive through the `taau_params` buffer, packed by `@builtin::systems.temporalUpscale.temporalUpscale`.

halton(index: number, base: number) → number

Halton, the standard choice for where inside the pixel to sample. Successive points of a low-discrepancy sequence avoid each other, so a short run of frames covers the pixel evenly — where independent random points clump and leave gaps, and a regular grid repeats its own pattern as a visible texture. Bases 2 and 3 are coprime, so the two axes do not fall into step.

argtypedescription
indexnumber
basenumber

phaseCount(scale: number) → number

argtypedescription
scalenumber

ensureOffsets(count: number) → void

argtypedescription
countnumber

frozen(spec: any) → any

Freeze a spec and every table it holds: the engine reads a spec frozen all the way down once and keeps it.

argtypedescription
specany

framePasses( ) → void

checkSpan( ) → void

What a UI viewport panel does to the reconstruction, said once: the panel presents the scene target itself, so the composite is that same image and the pass resolves onto the grid it is reading, while the render scale is still shrinking the scene.

inputs( ) → void

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.