Log inGet started
Package

TemporalAntiAliasing.component

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

TemporalAntiAliasing

The scene's temporal antialiasing, authored and persisted.

local id = entity.spawn("antialiasing").id
entity(id).component.add("TemporalAntiAliasing", { historyWeight = 0.9 })

Every field is live: editing one in the inspector re-pushes it, and the values persist with the scene like any other component.

fieldeffect
historyWeightHow much of the accumulated result to keep each frame. Higher resolves more detail and settles smoother, at the cost of taking longer to let go of what a surface used to look like.
neighbourhoodClampHow far outside the neighbourhood's own colour spread an accumulated sample may sit before it is pulled back in. Lower rejects more, trading some of the settling for a result that follows change faster.
sharpnessHow strongly the shown picture is sharpened, in [0, 1], by a contrast-adaptive pass after the display transform that steepens edges without lifting either side past its plateau and is never written back into the accumulation. 0 shows the accumulation as it is.
motionRejectionHow much fast motion shortens the memory, which is what stops a moving object trailing behind itself.
stillSamplesHow many renders a pixel whose surface holds still accumulates, in [1, 256]. Each render samples a different point inside the pixel, so a still pixel holding several whole passes through the sample sequence settles on their average instead of rippling as the samples visit it; fewer let a still picture follow a slow change of its lighting sooner.
qualityThe level the pass draws at: low, medium, high, or auto (the default), which follows the device's quality tier (renderer.qualityTier()). high sharpens by sharpness; medium and low run no sharpening pass.

What the pass does with these is in taa.renderFeature's README; the runtime API is @builtin::systems.antiAliasing.temporalAntiAliasing.