Skip to content

Documentation / scene / temporalResolve

Function: temporalResolve() ​

temporalResolve(scope, currentColorTex, historyColorTex, currentDepthTex, motionVectorTex, prevMotionVectorTex, uv, workSize, debug?): PBShaderExp

Defined in: libs/scene/src/shaders/temporal.ts:52

Temporal resolve implementation

Parameters ​

scope ​

PBInsideFunctionScope

The shader scope

currentColorTex ​

PBShaderExp

2D texture that holds the current color

historyColorTex ​

PBShaderExp

2D texture that holds the history color

currentDepthTex ​

PBShaderExp

2D texture that holds the scene depth

motionVectorTex ​

PBShaderExp

2D texture that holds the motion vector

prevMotionVectorTex ​

PBShaderExp

2D texture that holds the previous motion vector

uv ​

PBShaderExp

Fragment uv coordinate

workSize ​

PBShaderExp

Target texture size

debug? ​

number = TAA_DEBUG_NONE

Value for debugging

Returns ​

PBShaderExp

Released under the MIT License.