Skip to content

ghostTrail

ghostTrail(tex, uv, direction, count, spacing, opacity): Node<"vec4">

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

Directional ghost trail - creates ghosts along a direction.

Parameters

tex

Texture

Source texture

uv

Node<"vec2">

UV coordinates

direction

Vec2Input

Direction of ghost trail

count

number = 3

Number of ghosts

spacing

FloatInput = 0.02

Space between ghosts

opacity

FloatInput = 0.4

Ghost opacity

Returns

Node<"vec4">

Color with directional ghosts