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();
export {}Constructor
new FlipNode(sourceNode, components)| Parameter | Type | Default Value |
|---|---|---|
| sourceNode | Node | — |
| components | string | — |
Constructs a new flip node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| sourceNode | Node | — | |
| components | string | — | |
| Method | Type | |
|---|---|---|
| generateNodeType | (builder: NodeBuilder) => string | |
| generate | (builder: any) => string | |
Extends
TempNode