Capítulo 427 de 859

Chapter 427: JoinNode

Core Idea

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.

Key Concepts

  • nodes : Array.<Node>: An array of nodes that should be joined.

Reference Tables

Constructor

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

Properties

PropertyDescription
.nodes : Array.<Node>An array of nodes that should be joined.

Methods

MethodDescription
.generateNodeType( builder : NodeBuilder ) : stringThis method is overwritten since the node type must be inferred from the joined data length if not explicitly defined.

Key Takeaways

  1. JoinNode extends: EventDispatcher → Node → TempNode
  2. Most relevant properties: nodes.
  3. Key methods: generateNodeType.

Connects To