Skip to content

uvFlip(inputUV, flipX?, flipY?): Node <"vec2">

Defined in: packages/nodes/src/sprite/uvFlip.ts:21

Flip UV coordinates horizontally and/or vertically.

Node <"vec2">

The UV coordinates to transform

boolean | FloatInput

Whether to flip horizontally (true/1 = flip, false/0 = normal)

boolean | FloatInput

Whether to flip vertically (true/1 = flip, false/0 = normal)

Node <"vec2">

Flipped UV coordinates

// Flip horizontally
uvFlip(uv(), true, false)
// Flip based on uniform
uvFlip(uv(), flipXUniform, flipYUniform)