following along with a tutorial for a water shader (https://youtu.be/7L6ZUYj1hs8?si=lYCyQDsFNadkbZO3) and I’m at the part where he’s using edge detection to add like a beach foam effect on the edges. The problem is that instead of turning the edges white it’s turning the whole thing white even if its not intersecting anything.
FWIW, he uploaded it here for free: Godot Water Shader V1 by StayAtHomeDev You might download it and see if it works, and then use it to see where yours is different.
Just wanted to provide the answer, cause I also wanted to know and found out that someone (shoutout to throncreature) answered it on the Godot Discord server: