N E W

ReferenceAttributeNode

Last modified: Oct 19, 2026

This node binds a buffer attribute that is a property of the rendered object, like the matrices of an instanced mesh. Unlike BufferAttributeNode, the attribute isn’t part of the program: each object binds its own attribute, so objects can share a program.

const matrix = referenceAttribute( 'instanceMatrix', 'mat4' );
const color = referenceAttribute( 'instanceColor' );
export {}

Matrices are bound as columns. Storage buffer attributes are bound as storage buffers.

Constructor

new ReferenceAttributeNode(property, nodeType?, object?)
ParameterTypeDefault Value
propertystring—
nodeType?null | stringnull
object?null | Objectnull

Constructs a new reference attribute node.

AccessorType

Properties

PropertyTypeDefault Value
propertystring—
propertiesArray<string>—
objectnull | Object—
MethodType

Extends

Node
N E W

referenceAttribute

TSL function for creating a reference attribute node.

ParameterTypeDefault Value
namestring—
type?null | stringnull
object?null | Objectnull

Returns

ReferenceAttributeNode