I'm currently trying to flatten waves of the ocean simulator on a beach area using a lattice. But sometimes the end of the waves mesh becomes visible. When the influence of the lattice is increased too much it pulls the whole ocean to the beach.
What would be a better way to achieve this?
The images should illustrate the issues faced: