Capítulo 276 de 859

Chapter 276: TAARenderPass

Core Idea

Temporal Anti-Aliasing Render Pass.

When there is no motion in the scene, the TAA render pass accumulates jittered camera samples across frames to create a high quality anti-aliased result.

Note: This effect uses no reprojection so it is no TRAA implementation.

Key Concepts

  • accumulate : boolean: Whether to accumulate frames or not. This enables the TAA.
  • accumulateIndex : number: The accumulation index.
  • sampleLevel : number: Overwritten and set to 0 by default.

Code Examples

const taaRenderPass = new TAARenderPass( scene, camera );
taaRenderPass.unbiased = false;
composer.addPass( taaRenderPass );
  • What it demonstrates: Typical usage of TAARenderPass.

Reference Tables

Constructor

Signature
`new TAARenderPass( scene : Scene, camera : Camera, clearColor : number

Properties

PropertyDescription
.accumulate : booleanWhether to accumulate frames or not. This enables the TAA.
.accumulateIndex : numberThe accumulation index.
.sampleLevel : numberOverwritten and set to 0 by default.

Methods

MethodDescription
.dispose()Frees the GPU-related resources allocated by this instance. Call this method whenever the pass is no longer used in your app.
.render( renderer : WebGLRenderer, writeBuffer : WebGLRenderTarget, readBuffer : WebGLRenderTarget, deltaTime : number, maskActive : boolean )Performs the TAA render pass.

Key Takeaways

  1. TAARenderPass extends: Pass → SSAARenderPass
  2. Most relevant properties: accumulate, accumulateIndex, sampleLevel.
  3. Key methods: dispose, render.

Connects To