TemporalReprojectNode.html.md 2.1 KB

Inheritance: EventDispatcher → Node → TempNode →

TemporalReprojectNode

Temporal reprojection pass for denoising screen-space effects (SSGI, SSR, etc.).

Both modes share geometrically-weighted 4-tap bilinear history sampling and YCoCg variance clipping. Surface velocity reprojection is always sampled first. Specular mode then blends in hit-point parallax history on top of that surface result. Diffuse mode applies velocity-field divergence to detect surface stretching.

Unlike jitter-based TAA/TAAU, this node does not apply camera sub-pixel jitter — it only reprojects and accumulates history using motion vectors.

References:

Import

TemporalReprojectNode is an addon, and must be imported explicitly, see Installation#Addons.

import { temporalReproject } from 'three/addons/tsl/display/TemporalReprojectNode.js';

Constructor

new TemporalReprojectNode( beautyNode : TextureNode, depthNode : TextureNode, normalNode : TextureNode, velocityNode : TextureNode, camera : Camera, options : TemporalReprojectNodeOptions )

beautyNode

depthNode

normalNode

velocityNode

camera

options

Properties

.accumulate : boolean

When true, resolve output is copied into the internal history buffer each frame. When false, history is supplied externally via TemporalReprojectNode#setHistoryTexture.

.mode : TemporalReprojectMode

Methods

.setHistoryTexture( source : Object | Texture )

Supplies an external history source (e.g. a RecurrentDenoiseNode or its texture). Only used when TemporalReprojectNode#accumulate is false.

source

Source

examples/jsm/tsl/display/TemporalReprojectNode.js

粤ICP备19079148号