Material reacting to multiple sphere masks

Here is what I’m talking about:

image_149873.png

Here is a gif to my current results: Imgur

I’m trying to have a materiel interact with multiple sphere masks coming from different locations.
What I have tried is for each sphere to update a parameter collection value and then summing all the spheres in the circles material itself
It does work but it comes with multiple downsides:

1: I have to update each sphere location every tick
2: The is a predetermined amount of spheres that are possible this way that can’t be changed at runtime

Does any of you have a better idea on how to do this ?