Capítulo 510 de 859

Chapter 510: VertexColorNode

Core Idea

An attribute node for representing vertex colors.

Key Concepts

  • index : number: The attribute index to enable more than one sets of vertex colors.
  • isVertexColorNode : boolean (readonly): This flag can be used for type testing.

Reference Tables

Constructor

Signature
new VertexColorNode( index : number )

Properties

PropertyDescription
.index : numberThe attribute index to enable more than one sets of vertex colors.
.isVertexColorNode : boolean (readonly)This flag can be used for type testing.

Methods

MethodDescription
.getAttributeName( builder : NodeBuilder ) : stringOverwrites the default implementation by honoring the attribute index.

Key Takeaways

  1. VertexColorNode extends: EventDispatcher → Node → AttributeNode
  2. Most relevant properties: index, isVertexColorNode.
  3. Key methods: getAttributeName.

Connects To