I see that the excellent pixelFlow library (which really deserves more attention) allows attractors to be created (see FlowFieldParticles_Attractors). These will attract all particles to them with an acceleration dependent on distance (which itself can be modified via the fragment shader.
My question: Is it possible to apply the attractor to only selected particles? What I would like to do is send different particles to different attractors even if the particles originate from the same location.
My intuition is that this should be possible somehow by giving each attractor a ‘colour’ in the offscreen buffer that matches the (hidden) ‘colours’ of selected particles. But not really sure if this is the right approach, or how to go about coding it.
Thanks very much.