Proper Shoreline Material

The idea I had was using the distancefield for masking, ie telling it where it should appear and where not.

But after reading this guys comments, his waves were only traveling in a single direction and did not rotate around objects like dynamic flowmaps could supposedly do.

You could also take a look how the displacement is performed in the community ocean and weather project here.