File: ArrayNode.md | Updated: 11/15/2025
ArrayNode represents a collection of nodes, typically created using the array function.
const colors = array( [
vec3( 1, 0, 0 ),
vec3( 0, 1, 0 ),
vec3( 0, 0, 1 )
] );
const redColor = tintColors.element( 0 );
Constructs a new array node.
nodeType | The data type of the elements.
---|---
count | Size of the array.
values | Array default values. Default is null.
Array size.
This flag can be used for type testing.
Default is true.
Array default values.
This method builds the output node and returns the resulting array as a shader string.
builder | The current node builder.
---|---
Overrides: TempNode#generate
Returns: The generated shader string.
Returns the number of elements in the node array.
builder | The current node builder.
---|---
Overrides: TempNode#getArrayCount
Returns: The number of elements in the node array.
Returns the node's type.
builder | The current node builder.
---|---
Overrides: TempNode#getElementType
Returns: The type of the node.
Returns the node's type.
builder | The current node builder.
---|---
Overrides: TempNode#getNodeType
Returns: The type of the node.