Skip to content

blurRadial

blurRadial(tex, uv, center, strength, samples): Node<"vec4">

Defined in: packages/nodes/src/blur/blurRadial.ts:20

Radial blur (zoom blur) emanating from a center point. Creates a motion blur effect as if zooming in/out.

Parameters

tex

Texture

Source texture

uv

Node<"vec2">

UV coordinates

center

Vec2Input = ...

Center point of the blur (default: [0.5, 0.5])

strength

FloatInput = 0.1

Blur strength (default: 0.1)

samples

number = 8

Number of blur samples (default: 8)

Returns

Node<"vec4">

Radially blurred color

Example

const zoomed = blurRadial(texture, uv, [0.5, 0.5], 0.1)