Skip to content

blurBox(tex, uv, radius?, samples?): Node <"vec4">

Defined in: packages/nodes/src/blur/blurBox.ts:19

Simple box blur with uniform weights. Faster than Gaussian but produces more blocky results.

Texture 

Source texture

Node <"vec2">

UV coordinates

FloatInput = 0.01

Blur radius in UV space

number = 3

Number of samples per axis (default: 3)

Node <"vec4">

Blurred color

const blurred = blurBox(texture, uv, 0.01, 5)