EventDispatcherNodeTempNodePassNode

ToonOutlinePassNode

Represents a render pass for producing a toon outline effect on compatible objects. Only 3D objects with materials of type MeshToonMaterial and MeshToonNodeMaterial will receive the outline.

Code Example

const postProcessing = new PostProcessing( renderer );
const scenePass = toonOutlinePass( scene, camera );
postProcessing.outputNode = scenePass;

Constructor

new ToonOutlinePassNode( scene : Scene, camera : Camera, colorNode : Node, thicknessNode : Node, alphaNode : Node )

Constructs a new outline pass node.

scene

A reference to the scene.

camera

A reference to the camera.

colorNode

Defines the outline's color.

thicknessNode

Defines the outline's thickness.

alphaNode

Defines the outline's alpha.

Properties

.alphaNode : Node

Defines the outline's alpha.

.colorNode : Node

Defines the outline's color.

.name : string

The name of this pass.

Default is 'Outline Pass'.

Overrides: PassNode#name

.thicknessNode : Node

Defines the outline's thickness.

Source

src/nodes/display/ToonOutlinePassNode.js