uvOffset
uvOffset(
inputUV,offset):Node<"vec2">
Defined in: packages/nodes/src/sprite/uvOffset.ts:20
Offset UV coordinates by a given amount.
Parameters
Section titled “Parameters”inputUV
Section titled “inputUV”Node <"vec2">
The UV coordinates to transform
offset
Section titled “offset”Offset amount as [x, y] or vec2 node
Returns
Section titled “Returns”Node <"vec2">
Offset UV coordinates
Examples
Section titled “Examples”// Offset UV by 0.1 in both directionsuvOffset(uv(), [0.1, 0.1])// Animate UV offset with uniformuvOffset(uv(), offsetUniform)