Skip to content

blurMotionVelocity

blurMotionVelocity(tex, uv, velocity, scale?, samples?): Node <"vec4">

Defined in: packages/nodes/src/blur/blurMotion.ts:57

Velocity-based motion blur. Blur strength and direction based on velocity vector.

Texture 

Source texture

Node <"vec2">

UV coordinates

Vec2Input

Velocity vector (direction and magnitude)

FloatInput = 1

Velocity to blur scale (default: 1)

number = 8

Number of samples

Node <"vec4">

Velocity-blurred color

const blurred = blurMotionVelocity(texture, uv, velocityTexture.rg)