How to interact with vertex shader in react three fiber?

112 Views Asked by At

I'm new to React Three Fiber and would like to add some physics to a particle shader, like when the mouse approaches the particles they move away in the opposite direction, but when the mouse pointer moves away from the particle they return to its original position. I would like the movement of physics to look like a bubble effect.

Should I create a custom vertex shader to achieve this effect?

0

There are 0 best solutions below