new Trail3D(pos3D, lifeTime, width, tileInfo, color, colorEnd, additive)render3dExtras.js:2191Create a trail
pos3DVector3 optionallifeTimenumber optional, default 1Seconds the ribbon takes to thin and fade from head to tail, Infinity keeps every sample at full width and never drops one, so it grows as long as the object moves
widthnumber optional, default 0.2Width at the head, it thins to nothing at the tail
tileInfoTileInfo|TextureInfo optionalTile or whole texture stretched along the trail, undefined is untextured
colorColor optionalColor at the head
colorEndColor optionalColor at the tail
additiveboolean optional, default falseAdditive blending
const trail = new Trail3D(vec3(), 1, .3, undefined, hsl(.08, 1, .5), hsl(0, 1, .5, 0), true);
ball.addChild(trail); // follows the ball