GTAOPassProxy

GTAOPassProxy

GTAOPassProxy是PassNodeProxy的一个子类,用于代理GTAO(Ground Truth Ambient Occlusion)后处理特效的Pass节点。

Constructor

new GTAOPassProxy()

Source:

Extends

Members

distanceExponent :number

Description:
  • Another option to tweak the occlusion. The recommended range is [1,2] for attenuating the AO.

Source:
Default Value:
  • 1

Another option to tweak the occlusion. The recommended range is [1,2] for attenuating the AO.

Type:
  • number

distanceFallOff :number

Description:
  • The distance fall off value of the ambient occlusion. A lower value leads to a larger AO effect. The value should lie in the range [0,1].

Source:
Default Value:
  • 1

The distance fall off value of the ambient occlusion. A lower value leads to a larger AO effect. The value should lie in the range [0,1].

Type:
  • number

radius :number

Description:
  • The radius of the ambient occlusion.

Source:
Default Value:
  • 0.25

The radius of the ambient occlusion.

Type:
  • number

resolutionScale :number

Description:
  • The resolution scale. By default the effect is rendered in full resolution for best quality but a value of 0.5 should be sufficient for most scenes.

Source:
Default Value:
  • 1

The resolution scale. By default the effect is rendered in full resolution for best quality but a value of 0.5 should be sufficient for most scenes.

Type:
  • number

samples :number

Description:
  • How many samples are used to compute the AO. A higher value results in better quality but also in a more expensive runtime behavior.

Source:
Default Value:
  • 8

How many samples are used to compute the AO. A higher value results in better quality but also in a more expensive runtime behavior.

Type:
  • number

scale :number

Description:
  • The scale of the ambient occlusion.

Source:
Default Value:
  • 1

The scale of the ambient occlusion.

Type:
  • number

thickness :number

Description:
  • The thickness of the ambient occlusion.

Source:
Default Value:
  • 1

The thickness of the ambient occlusion.

Type:
  • number

useTemporalFiltering :boolean

Description:
  • Whether to use temporal filtering or not. Setting this property to true requires the usage of TRAANode. This will help to reduce noise although it introduces typical TAA artifacts like ghosting and temporal instabilities.

    If setting this property to false, a manual denoise via DenoiseNode might be required.

Source:
Default Value:
  • false

Whether to use temporal filtering or not. Setting this property to true requires the usage of TRAANode. This will help to reduce noise although it introduces typical TAA artifacts like ghosting and temporal instabilities.

If setting this property to false, a manual denoise via DenoiseNode might be required.

Type:
  • boolean

Methods

build(depthNode, normalNode, camera, outputNode) → {TextureNode}

Description:
  • 构建GTAO Pass节点。

Source:
Parameters:
Name Type Description
depthNode TextureNode

深度节点对象

normalNode TextureNode

法线节点对象

camera Camera

相机对象

outputNode TextureNode

输出节点对象

Returns:

处理后的节点对象

Type
TextureNode