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