📄 threejs/Core/Nodes/VertexColorNode

File: VertexColorNode.md | Updated: 11/15/2025


title: VertexColorNode category: Core layout: docs

VertexColorNode

An attribute node for representing vertex colors.

Constructor

new VertexColorNode( index : number )

Constructs a new vertex color node.

index | The attribute index.
---|---

Properties

.index : number

The attribute index to enable more than one sets of vertex colors.

Default is 0.

.isVertexColorNode : boolean (readonly)

This flag can be used for type testing.

Default is true.

Methods

.getAttributeName( builder : NodeBuilder ) : string

Overwrites the default implementation by honoring the attribute index.

builder | The current node builder.
---|---

Overrides: AttributeNode#getAttributeName

Returns: The attribute name.

Source

src/nodes/accessors/VertexColorNode.js