File: FlipNode.md | Updated: 11/15/2025
This module is part of the TSL core and usually not used in app level code. It represents a flip operation during the shader generation process meaning it flips normalized values with the following formula:
FlipNode is internally used to implement any flipXYZW(), flipRGBA() and flipSTPQ() method invocations on node objects. For example:
uvNode = uvNode.flipY();
x = 1 - x;
Constructs a new flip node.
sourceNode | The node which component(s) should be flipped.
---|---
components | The components that should be flipped e.g. 'x' or 'xy'.
The components that should be flipped e.g. 'x' or 'xy'.
The node which component(s) should be flipped.
This method is overwritten since the node type is inferred from the source node.
builder | The current node builder.
---|---
Overrides: TempNode#getNodeType
Returns: The node type.