Water Shader - Foam

Hi!

I’ve been working on some watershader and now my biggest interest was to add foam to ther water.

This is the result i got when i added the foam(i looked at a older post (Tidal Water Foam - Rendering - Unreal Engine Forums)) I got the foam to show but when i shere abbout to add my foam texture the whole surface blended in with that texture.

Is there some way just to add the texture around the object?

thanks in advance - Albin!

You can at least use WorldPosition.xy divided by the visible texture scale as UV for your texture.