How do I create a dynamic forcefield shader?

I have a website on which I post some of the materials I make, maybe I will post this one too, once it’s completly finished.

summarized:

  1. create a material for the base sphere
  2. create a material that spawns an effect on the hit location
  3. if the base sphere gets hit, spawn another sphere with the same transform as child of the base sphere and put the material on it you made in 2).
  4. Destroy the spawned spheres after the animation is finished.