Capítulo 412 de 859
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:
x = 1 - x;
FlipNode is internally used to implement any flipXYZW(), flipRGBA() and flipSTPQ() method invocations on node objects. For example:
uvNode = uvNode.flipY();
'x' or 'xy'.Constructor
| Signature |
|---|
new FlipNode( sourceNode : Node, components : string ) |
Properties
| Property | Description |
|---|---|
.components : string | The components that should be flipped e.g. 'x' or 'xy'. |
.sourceNode : Node | The node which component(s) should be flipped. |
Methods
| Method | Description |
|---|---|
.generateNodeType( builder : NodeBuilder ) : string | This method is overwritten since the node type is inferred from the source node. |