Taos API Reference
    Preparing search index...

    Class TemporalUpscalePass

    Temporal upscaler (FSR2-style, render-graph version).

    Resolves a sub-native render-res HDR frame to display resolution by accumulating a reprojected display-res history with the Catmull-Rom-upsampled current frame, rejecting stale history via a YCoCg neighborhood clamp, then a light RCAS-style sharpen. Reuses the TAA Halton jitter (sized to the render resolution) and the shared velocity buffer. With renderScale = 1 the render and display resolutions match and it behaves as a high-quality TAA resolve.

    Drive the engine's ctx.setRenderScale(s) (via TemporalUpscaleFeature) so every scene/lighting/post pass renders at the reduced size; this pass is the one that brings the image back up to display resolution.

    Hierarchy (View Summary)

    • Pass<TemporalUpscaleDeps, TemporalUpscaleOutputs>
      • TemporalUpscalePass
    Index

    Properties

    name: "TemporalUpscalePass" = 'TemporalUpscalePass'

    Human-readable identifier used in graph node labels and error messages.

    sampleCount: number = 16

    Halton sample count before the jitter sequence repeats.

    jitterScale: number = 1.0

    Sub-pixel jitter amplitude multiplier (1 = full ±0.5 render px).

    blendStatic: number = 0.03

    Current-frame weight when the pixel is static (low = heavy history, stable).

    blendMoving: number = 0.2

    Current-frame weight once motion saturates (higher = ghost-free, noisier). Kept low (like TAA) so a continuously-moving camera still accumulates history instead of falling back to the aliased, low-res current frame.

    motionFull: number = 2.5

    Screen-space speed (display px/frame) at which static→moving saturates.

    sharpness: number = 0.3

    RCAS-style sharpening amount applied to the resolved image (0 = none).

    Methods

    • Insert the pass into graph for one frame. Implementations call graph.addPass(name, type, b => { ... }) exactly once and use the supplied PassBuilder to declare reads, writes, transient resources, and the execute callback.

      Parameters

      • graph: RenderGraph

        Graph being built this frame.

      • deps: TemporalUpscaleDeps

        Pass-specific dependency record (handles, scene data, etc.).

      Returns TemporalUpscaleOutputs

      Pass-specific output record (typically a set of handles downstream passes will consume).