Water Ocean Body: How to Add Foam to places where ocean collides with certain static meshes?

How to Add Foam to places where ocean collides with for example cliffs?

2 years old bump

Makes it 3 years, I really need my water body ocean to have foam.