Extends
- PassNodeProxy.<SSSNode>
Members
maxDistance :number
- Description:
Maximum shadow length in world units. Longer shadows result in more computational overhead.
- Source:
- Default Value:
- 0.2
Maximum shadow length in world units. Longer shadows result in more computational overhead.
Type:
- number
quality :number
- Description:
This parameter controls how detailed the raymarching process works. The value ranges is
[0,1]where1means best quality (the maximum number of raymarching iterations/samples) and0means no samples at all.A quality of
0.5is 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].1means best quality but also results in more computational overhead. Setting to0.5means 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
shadowIntensity :number
- Description:
Shadow intensity. Must be in the range
[0, 1].
- Source:
- Default Value:
- 1
Shadow intensity. Must be in the range [0, 1].
Type:
- number
thickness :number
- Description:
Depth testing thickness.
- Source:
- Default Value:
- 0.01
Depth testing thickness.
Type:
- number
useTemporalFiltering :boolean
- Description:
Whether to use temporal filtering or not. Setting this property to
truerequires the usage ofTRAANode. This will help to reduce noice although it introduces typical TAA artifacts like ghosting and temporal instabilities.
- 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 noice
although it introduces typical TAA artifacts like ghosting and temporal
instabilities.
Type:
- boolean
Methods
build(depthNode, camera, mainLight, outputNode) → {TextureNode}
- Description:
构建SSS Pass节点。
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
depthNode |
TextureNode | 深度节点对象 |
camera |
Camera | 摄像机对象 |
mainLight |
DirectionalLight | 主光源对象,必须是DirectionalLight类型 |
outputNode |
TextureNode | 输出节点对象 |
Returns:
处理后的节点对象
- Type
- TextureNode