you don’t have to rely on a texture mask.
you can even make a shore wave using depthbias alpha (see this example), which is why I suggested distancefields in the first place (should be superior to depthbias alpha and as of 4.12 the landscape is in theory creating proper distancefield data)