OutlinePassProxy

OutlinePassProxy

OutlinePassProxy是PassNodeProxy的一个子类,用于代理Outline(轮廓)后处理特效的Pass节点。

Constructor

new OutlinePassProxy()

Source:

Extends

Members

downSampleRatio :number

Description:
  • The downsample ratio.

Source:
Default Value:
  • 2

The downsample ratio.

Type:
  • number

edgeGlow :number

Description:
  • Can be used for an animated glow/pulse effect.

Source:
Default Value:
  • 0

Can be used for an animated glow/pulse effect.

Type:
  • number

edgeStrength :number

Description:
  • The strength of the edges.

Source:
Default Value:
  • 3

The strength of the edges.

Type:
  • number

edgeThickness :number

Description:
  • The thickness of the edges.

Source:
Default Value:
  • 1

The thickness of the edges.

Type:
  • number

hiddenEdgeColor

Description:
  • The color of hidden edges.

Source:

The color of hidden edges.

hiddenEdgeColor

Description:
  • The color of hidden edges.

Source:

The color of hidden edges.

highlightColor

Description:
  • The highlight color for the selected objects.

Source:

The highlight color for the selected objects.

highlightColor

Description:
  • The highlight color for the selected objects.

Source:

The highlight color for the selected objects.

highlightStrength :number

Description:
  • The strength of the highlight on the selected objects.

Source:
Default Value:
  • 0

The strength of the highlight on the selected objects.

Type:
  • number

pulsePeriod :number

Description:
  • The period of the pulse effect in seconds. Set to 0 to disable the pulse effect.

Source:
Default Value:
  • 0

The period of the pulse effect in seconds. Set to 0 to disable the pulse effect.

Type:
  • number

selectedObjects :Array.<Object3D>

Description:
  • An array of selected objects.

Source:

An array of selected objects.

Type:
  • Array.<Object3D>

useHighlight :boolean

Description:
  • Whether to use highlight for the selected objects. When set to true, the highlightStrength will be set to 1, otherwise it will be set to 0.

Source:
Deprecated:
  • Use highlightStrength instead to control the strength of the highlight.
Default Value:
  • false

Whether to use highlight for the selected objects. When set to true, the highlightStrength will be set to 1, otherwise it will be set to 0.

Type:
  • boolean

visibleEdgeColor

Description:
  • The color of visible edges.

Source:

The color of visible edges.

visibleEdgeColor

Description:
  • The color of visible edges.

Source:

The color of visible edges.

Methods

build(scene, camera, outputNode) → {TextureNode}

Description:
  • 构建Outline Pass节点。

Source:
Parameters:
Name Type Description
scene Scene

场景对象

camera Camera

相机对象

outputNode TextureNode

输出节点对象

Returns:

处理后的节点对象

Type
TextureNode