Documentation
    Preparing search index...

    Variable PARTICLE_INTEGRATOR_SHADER_SOURCEConst

    PARTICLE_INTEGRATOR_SHADER_SOURCE: string = ...

    The §36 GPU particle integrator (R-31's simulation half) — semi-implicit Euler under constant gravity, @fourjs/particles' documented step order (v += g·dt, then p += v·dt) over the pool's flat x,y,z Float32Array lanes.

    Bindings, in ComputePassDescriptor.bindings order:

    1. params — PARTICLE_SIMULATION_PARAMS_FLOATS floats, "read-only" (see writeParticleSimulationParams);
    2. positions — array<f32>, 3 lanes per particle, "read-write";
    3. velocities — array<f32>, 3 lanes per particle, "read-write".

    One invocation integrates one particle; invocations past count return — the workgroup rounding of particleIntegratorWorkgroups makes the overshoot at most one workgroup.