I saw that you had a similar setup as I had made for the reflection mask. It's pretty simple, actually, but the tricky thing is indeed the fact that white displaces a wave out of it's own white space, so to speak. So you have to stretch Y and adapt animation variables. I stretched by 5x only, which was sufficient. But it does work nicely indeed.
I also warped the foam a bit by the rocks.