Capítulo 389 de 859

Chapter 389: BuiltinNode

Core Idea

The node allows to set values for built-in shader variables. That is required for features like hardware-accelerated vertex clipping.

Key Concepts

  • isBuiltinNode : boolean (readonly): This flag can be used for type testing.
  • name : string: The name of the built-in shader variable.

Reference Tables

Constructor

Signature
new BuiltinNode( name : string )

Properties

PropertyDescription
.isBuiltinNode : boolean (readonly)This flag can be used for type testing.
.name : stringThe name of the built-in shader variable.

Methods

MethodDescription
.generate( builder : NodeBuilder ) : stringGenerates the code snippet of the builtin node.

Key Takeaways

  1. BuiltinNode extends: EventDispatcher → Node
  2. Most relevant properties: isBuiltinNode, name.
  3. Key methods: generate.

Connects To