0 votes

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.

in Engine by (37 points)
edited by

1 Answer

0 votes

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

by (283 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.