What about any bright ideas about getting the depth from the land and using this as a basis for wave displacement and foam dispersal?? I thought I found something (see attached render, but don't look at the horrible land), but it only seemed to work with a fractal based terrain, not with an imported TER or generated terrain.
I don't really understand what the difference is in output between fractals, TER or generated terrain/eroded terrain. Anyone? If you attach a surface layer/distribution layer as a blending mask for the water/foam layers to this output, you should be able to get foam and waves where you want them with the altitude/slope settings. But there's only a difference (no foam/all foam) at 0 or 0.0001 altitude, not around waterlevel and downwards. I almost give up, but I hope for some bright mathematician to come up with the final solution!