ReferenceBaseNode

Last modified: Mar 5, 2026

Base class for nodes which establishes a reference to a property of another object. In this way, the value of the node is automatically linked to the value of referenced object. Reference nodes internally represent the linked value as a uniform.

Constructor

new ReferenceBaseNode(property, uniformType, object?, count?)
ParameterTypeDefault Value
propertystring
uniformTypestring
object?null | Objectnull
count?null | numbernull

Constructs a new reference base node.

AccessorType

Properties

PropertyTypeDefault Value
propertystring
uniformTypestring
objectnull | Object
countnull | number
propertiesArray<string>
referencenull | Object
nodeUniformNode
groupUniformGroupNode
MethodType

Extends

Node

reference

TSL function for creating a reference base node.

ParameterTypeDefault Value
namestring
typestring
objectObject

Returns

ReferenceBaseNode

referenceBuffer

TSL function for creating a reference base node. Use this function if you want need a reference to an array-like property that should be represented as a uniform buffer.

ParameterTypeDefault Value
namestring
typestring
countnumber
object?Object

Returns

ReferenceBaseNode