EventDispatcherNodeTempNode

JoinNode

This module is part of the TSL core and usually not used in app level code. It represents a join operation during the shader generation process. For example in can compose/join two single floats into a vec2 type.

Constructor

new JoinNode( nodes : Array.<Node>, nodeType : string )

Constructs a new join node.

nodes

An array of nodes that should be joined.

nodeType

The node type.

Default is null.

Properties

.nodes : Array.<Node>

An array of nodes that should be joined.

Methods

.getNodeType( builder : NodeBuilder ) : string

This method is overwritten since the node type must be inferred from the joined data length if not explicitly defined.

builder

The current node builder.

Overrides: TempNode#getNodeType
Returns: The node type.

Source

src/nodes/utils/JoinNode.js