How to distort vertices using material

I’m working on an effect that essentially blobs two objects together when they get too close. The effect looks similar to metaballs but you can move individual mesh objects to influence the effect.i would also like to refrain from using distance fields if possible.