Post #1770795
2026-03-14 20:51 UTC
p5 compute shader update! https://editor.p5js.org/davepagurek/sketches/y_e7f4JZ-
You can now work with objects in your compute shader, e.g.:
const particleData = uniformStorage(particles);
const idx = iteration.index.x;
let pos = particleData[idx].position;
let vel = particleData[idx].velocity;
pos += vel * deltaTime;
Replies (1)
-
@davepagurek@genart.social 2026-03-15 16:00
p5.strands boids! https://editor.p5js.org/davepagurek/sketches/JoMhtXAR2 Video compression does not like this much, but my 2021 macbook runs 10,000 boids with no spatial partitioning or anything, just a regular old for loop, with no problem