SSRPassProxy

SSRPassProxy

SSRPassProxy是PassNodeProxy的一个子类,用于代理SSR(Screen Space Reflections)后处理特效的Pass节点。

Constructor

new SSRPassProxy()

Source:

Extends

Members

blurQuality :number

Description:
  • The quality of the blur. Must be an integer in the range [1,3].

Source:
Default Value:
  • 1

The quality of the blur. Must be an integer in the range [1,3].

Type:
  • number

maxDistance :number

Description:
  • Controls how far a fragment can reflect. Increasing this value result in more computational overhead but also increases the reflection distance.

Source:
Default Value:
  • 1

Controls how far a fragment can reflect. Increasing this value result in more computational overhead but also increases the reflection distance.

Type:
  • number

opacity :number

Description:
  • Controls how the SSR reflections are blended with the beauty pass.

Source:
Default Value:
  • 1

Controls how the SSR reflections are blended with the beauty pass.

Type:
  • number

quality :number

Description:
  • This parameter controls how detailed the raymarching process works. The value ranges is [0,1] where 1 means best quality (the maximum number of raymarching iterations/samples) and 0 means no samples at all.

    A quality of 0.5 is usually sufficient for most use cases. Try to keep this parameter as low as possible. Larger values result in noticeable more overhead.

Source:
Default Value:
  • 0.5

This parameter controls how detailed the raymarching process works. The value ranges is [0,1] where 1 means best quality (the maximum number of raymarching iterations/samples) and 0 means no samples at all.

A quality of 0.5 is usually sufficient for most use cases. Try to keep this parameter as low as possible. Larger values result in noticeable more overhead.

Type:
  • number

resolutionScale :number

Description:
  • The resolution scale. Valid values are in the range [0,1]. 1 means best quality but also results in more computational overhead. Setting to 0.5 means the effect is computed in half-resolution.

Source:
Default Value:
  • 1

The resolution scale. Valid values are in the range [0,1]. 1 means best quality but also results in more computational overhead. Setting to 0.5 means the effect is computed in half-resolution.

Type:
  • number

thickness :number

Description:
  • Controls the cutoff between what counts as a possible reflection hit and what does not.

Source:
Default Value:
  • 0.03

Controls the cutoff between what counts as a possible reflection hit and what does not.

Type:
  • number

Methods

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

Description:
  • 构建SSR Pass节点。

Source:
Parameters:
Name Type Description
colorNode TextureNode

颜色节点对象

depthNode TextureNode

深度节点对象

normalNode TextureNode

法线节点对象

metalnessNode Node

金属度节点对象

roughnessNode Node

粗糙度节点对象

camera Camera

相机对象

outputNode TextureNode

输出节点对象

Returns:

处理后的节点对象

Type
TextureNode