TRAAPassProxy

TRAAPassProxy

TRAAPassProxy是TRAANode节点的代理类,用于管理TRAA(Temporal Reprojection Anti-Aliasing)后处理特效的Pass节点。

Constructor

new TRAAPassProxy()

Source:

Extends

Members

depthThreshold :number

Description:
  • When the difference between the current and previous depth goes above this threshold, the history is considered invalid.

Source:
Default Value:
  • 0.0005

When the difference between the current and previous depth goes above this threshold, the history is considered invalid.

Type:
  • number

edgeDepthDiff :number

Description:
  • The depth difference within the 3×3 neighborhood to consider a pixel as an edge.

Source:
Default Value:
  • 0.001

The depth difference within the 3×3 neighborhood to consider a pixel as an edge.

Type:
  • number

maxVelocityLength :number

Description:
  • The history becomes invalid as the pixel length of the velocity approaches this value.

Source:
Default Value:
  • 128

The history becomes invalid as the pixel length of the velocity approaches this value.

Type:
  • number

useSubpixelCorrection :boolean

Description:
  • Whether to decrease the weight on the current frame when the velocity is more subpixel. This reduces blurriness under motion, but can introduce a square pattern artifact.

Source:
Default Value:
  • true

Whether to decrease the weight on the current frame when the velocity is more subpixel. This reduces blurriness under motion, but can introduce a square pattern artifact.

Type:
  • boolean

Methods

build(inputNode, depthNode, velocityNode, camera) → {Node}

Description:
  • 构建TRAA Pass节点。

Source:
Parameters:
Name Type Description
inputNode TextureNode

输入节点对象

depthNode TextureNode

深度节点对象

velocityNode TextureNode

运动节点对象

camera Camera

相机对象

Returns:

处理后的节点对象

Type
Node