To hack away at if anyone can tidy it up and make it look more natural and generally nicer...
The two temporary groups are just placeholders for blending and colouring at this wip point of view.
It isn't using any functions although it would probably be easier to replace the simple shapes by a line function or two. I've just use simple shape shaders because I can easily size them to see the wave profile where they are cut off.
* I think if this method was to be used in a scene with terrain I could blend it to the coast with a bit of fiddling with the normally invisible colour noise of the terrain shader and a distance restriction(maybe). But that's a session for another day, I'm done with fiddling for now...
It's basic looking and messy for now, I usually like to hide some nodes and shrink the network a bit but I haven't here, everything is visible in the water group.
Cheers!