pixelateBySize
pixelateBySize(
inputUV,pixelSize):Node<"vec2">
Defined in: packages/nodes/src/sprite/pixelate.ts:48
Pixelate UV coordinates with a single pixel size value.
Parameters
Section titled “Parameters”inputUV
Section titled “inputUV”Node <"vec2">
The UV coordinates to transform
pixelSize
Section titled “pixelSize”Size of pixels (higher = more pixelated)
Returns
Section titled “Returns”Node <"vec2">
Pixelated UV coordinates
Example
Section titled “Example”// Pixelate with 8 pixel sizepixelateBySize(uv(), 8)