APIC affine matrix C ≈ ∇v, the velocity gradient (mat3; for viscosity).
Substep, seconds (float).
Elastic deformation gradient F (mat3).
det F (float).
Plastic volume ratio Jp (float; 1 for materials without plasticity).
The material's parameters as float uniforms, by name (live through MPMSolver.set).
Per-particle temperature, kelvin (float; the particle pool's props.x).
What a material's GPU hooks see of one particle (TSL nodes). Matrices are
mat3nodes. Note TSL's matrix–scalar operators:M.mul(s)andM.add(N)are fine, butM.sub(s)andM.div(s)are not (writeM.mul(s.reciprocal()), buildmpmIdentity()forI).