How to touch two shader ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rpggeek

Hi masters!
I’m trying to make 2D bubble game,what i want to achieve is that make deformation when two bubbles touched each other.
After searching about on GPU pipeline i made a decision that there is no way to know if two shader touched each other because of shaders doesn’t keep information but only ther pixel coordinates and rgb values.
But i think there must be a way,another way in the cyber world.
Waiting for your help,thx.

:bust_in_silhouette: Reply From: Joel_127

I think you can pass the collision point(s) to the shader as a parameter, and update it every frame.