Skip to content

ghostSpeed

ghostSpeed(tex, uv, velocity, maxGhosts, spacing, opacity): Node<"vec4">

Defined in: packages/nodes/src/vfx/afterimage.ts:189

Speed ghost effect - ghosts that appear based on movement speed.

Parameters

tex

Texture

Source texture

uv

Node<"vec2">

UV coordinates

velocity

Vec2Input

Movement velocity

maxGhosts

number = 5

Maximum number of ghosts at full speed

spacing

FloatInput = 0.015

Base spacing between ghosts

opacity

FloatInput = 0.5

Ghost opacity

Returns

Node<"vec4">

Color with speed-based ghosts