Capítulo 498 de 859

Chapter 498: ToonOutlinePassNode

Core Idea

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.

Key Concepts

  • alphaNode : Node: Defines the outline's alpha.
  • colorNode : Node: Defines the outline's color.
  • name : string: The name of this pass.
  • thicknessNode : Node: Defines the outline's thickness.

Code Examples

const postProcessing = new RenderPipeline( renderer );
const scenePass = toonOutlinePass( scene, camera );
postProcessing.outputNode = scenePass;
  • What it demonstrates: Typical usage of ToonOutlinePassNode.

Reference Tables

Constructor

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

Properties

PropertyDescription
.alphaNode : NodeDefines the outline's alpha.
.colorNode : NodeDefines the outline's color.
.name : stringThe name of this pass.
.thicknessNode : NodeDefines the outline's thickness.

Key Takeaways

  1. ToonOutlinePassNode extends: EventDispatcher → Node → TempNode → PassNode
  2. Most relevant properties: alphaNode, colorNode, name, thicknessNode.

Connects To