Variable particleMotionBitConst Advanced
particleMotionBit: {
attributes: { aVel: "float32x3" };
bindings: { material: { uDrag: "f32"; uGravity: "vec3<f32>" } };
gl: { vertex: { beforeTransform: string } };
gpu: { vertex: { beforeTransform: string } };
name: string;
} = ...
Type Declaration
-
attributes: { aVel: "float32x3" }
-
bindings: { material: { uDrag: "f32"; uGravity: "vec3<f32>" } }
-
gl: { vertex: { beforeTransform: string } }
-
gpu: { vertex: { beforeTransform: string } }
-
name: string
Moves each particle from its launch point along a ballistic path, worked out on the GPU
aPositionis the launch point andaVelthe launch velocity, per particle. The container'suGravityuniform is the acceleration, anduDragthe linear drag per second, 0 for none. Compose it after particleLifetimeBit.