trailVelocity
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.
Parameters
tex
Source texture
uv
Node<"vec2">
UV coordinates
velocity
Current velocity (determines direction and intensity)
maxLength
FloatInput = 0.15
Maximum trail length
samples
number = 4
Number of echo samples
opacity
FloatInput = 0.6
Trail opacity
Returns
Node<"vec4">
Color with velocity-based trail