One for the shader gods out there: recreate this stylized water effect

Hey Guys,

Our artist produced this really nice looking effect in blender:

Can anyone assist me with recreating this? Im particularly interested in how the effect works well where the ship intersects with the water too.


I think this can be done with a distance computation. for each pixel of the water, compute the distance to the box position as the boat. then depending on distance, do a lerp to have maximum foam or none.

The PG given by @phaselock in this thread is not ok? It seems to be close to what you want.


You know what. I totally forgot about that thread lol!

Ill have a look again and see if I can make it work using that