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.
Parameters
Section titled “Parameters”Source texture
Node <"vec2">
UV coordinates
velocity
Section titled “velocity”Velocity vector (direction and magnitude)
scale?
Section titled “scale?”FloatInput = 1
Velocity to blur scale (default: 1)
samples?
Section titled “samples?”number = 8
Number of samples
Returns
Section titled “Returns”Node <"vec4">
Velocity-blurred color
Example
Section titled “Example”const blurred = blurMotionVelocity(texture, uv, velocityTexture.rg)