SSGIPassProxy

SSGIPassProxy

SSGIPassProxy是PassNodeProxy的一个子类,用于代理SSGI(Screen Space Global Illumination)后处理特效的Pass节点。

Constructor

new SSGIPassProxy()

Source:

Extends

Members

aoIntensity :number

Description:
  • Power function applied to AO to make it appear darker/lighter. Should be in the range [0, 4].

Source:
Default Value:
  • 0

Power function applied to AO to make it appear darker/lighter. Should be in the range [0, 4].

Type:
  • number

backfaceLighting :number

Description:
  • How much light backface surfaces emit. Should be in the range [0, 1].

Source:
Default Value:
  • 0

How much light backface surfaces emit. Should be in the range [0, 1].

Type:
  • number

expFactor :number

Description:
  • Controls samples distribution. It's an exponent applied at each step get increasing step size over the distance. Should be in the range [1, 3].

Source:
Default Value:
  • 2

Controls samples distribution. It's an exponent applied at each step get increasing step size over the distance. Should be in the range [1, 3].

Type:
  • number

giIntensity :number

Description:
  • Intensity of the indirect diffuse light. Should be in the range [0, 100].

Source:
Default Value:
  • 10

Intensity of the indirect diffuse light. Should be in the range [0, 100].

Type:
  • number

radius :number

Description:
  • Effective sampling radius in world space. AO and GI can only have influence within that radius. Should be in the range [1, 25].

Source:
Default Value:
  • 12

Effective sampling radius in world space. AO and GI can only have influence within that radius. Should be in the range [1, 25].

Type:
  • number

sliceCount :number

Description:
  • Number of per-pixel hemisphere slices. This has a big performance cost and should be kept as low as possible. Should be in the range [1, 4].

Source:
Default Value:
  • 2

Number of per-pixel hemisphere slices. This has a big performance cost and should be kept as low as possible. Should be in the range [1, 4].

Type:
  • number

stepCount :number

Description:
  • Number of samples taken along one side of a given hemisphere slice. This has a big performance cost and should be kept as low as possible. Should be in the range [1, 32].

Source:
Default Value:
  • 8

Number of samples taken along one side of a given hemisphere slice. This has a big performance cost and should be kept as low as possible. Should be in the range [1, 32].

Type:
  • number

thickness :number

Description:
  • Constant thickness value of objects on the screen in world units. Allows light to pass behind surfaces past that thickness value. Should be in the range [0.01, 10].

Source:
Default Value:
  • 1

Constant thickness value of objects on the screen in world units. Allows light to pass behind surfaces past that thickness value. Should be in the range [0.01, 10].

Type:
  • number

useLinearThickness :boolean

Description:
  • Whether to increase thickness linearly over distance or not (avoid losing detail over the distance).

Source:
Default Value:
  • false

Whether to increase thickness linearly over distance or not (avoid losing detail over the distance).

Type:
  • boolean

useScreenSpaceSampling :boolean

Description:
  • Makes the sample distance in screen space instead of world-space (helps having more detail up close).

Source:
Default Value:
  • false

Makes the sample distance in screen space instead of world-space (helps having more detail up close).

Type:
  • boolean

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 is required.

Source:
Default Value:
  • true

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 is required.

Type:
  • boolean

Methods

build(colorNode, depthNode, normalNode, camera, diffuseNode, outputNode) → {Node}

Description:
  • 构建SSGI Pass节点。

Source:
Parameters:
Name Type Description
colorNode TextureNode

颜色节点对象

depthNode TextureNode

深度节点对象

normalNode TextureNode

法线节点对象

camera Camera

相机对象

diffuseNode TextureNode

漫反射节点对象

outputNode TextureNode

输出节点对象

Returns:

处理后的节点对象

Type
Node