Inheritance: EventDispatcher → Node →
This module is part of the TSL core and usually not used in app level code. It represents a convert operation during the shader generation process meaning it converts the data type of a node to a target data type.
Constructs a new convert node.
node
The node which type should be converted.
convertTo
The target node type. Multiple types can be defined by separating them with a | sign.
The target node type. Multiple types can be defined by separating them with a | sign.
The node which type should be converted.
This method is overwritten since the implementation tries to infer the best matching type from the ConvertNode#convertTo property.
builder
The current node builder.
Overrides: Node#getNodeType
Returns: The node type.