*Inheritance: EventDispatcher → Node →*

# 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

### .generateNodeType( 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:** [Node#generateNodeType](Node.html#generateNodeType)

**Returns:** The node type.

## Source

[src/nodes/utils/JoinNode.js](https://github.com/mrdoob/three.js/blob/master/src/nodes/utils/JoinNode.js)