Skip to content

trailVelocity(tex, uv, velocity, maxLength?, samples?, opacity?): Node <"vec4">

Defined in: packages/nodes/src/vfx/trail.ts:141

Create echo/ghost trail using velocity-based offset.

Texture 

Source texture

Node <"vec2">

UV coordinates

Vec2Input

Current velocity (determines direction and intensity)

FloatInput = 0.15

Maximum trail length

number = 4

Number of echo samples

FloatInput = 0.6

Trail opacity

Node <"vec4">

Color with velocity-based trail