Fragment shader too many uniforms error

https://editor.p5js.org/abe/sketches/H8K7bY5s

canvas

Here something done very quickly and without much thinking :slight_smile: I hope the code is not too bad. I’m curious about performance on mobile, as for-loops are not recommended in shaders. For each pixel in the screen it checks the distance to all particles to calculate brightness. The brute force approach.

1 Like