I didn't work on the foam anymore, Jon. But what would be your suggestion? The river is a warped simple shape after all, so it's 'easy' to have the foam follow the stream, or restrict it to the sides. The 'get normal' stuff wouldn't probably work, because if you get the normal and apply something in the water, it's probably only taking the normals from there, not from the surface displacements. I'll do some more testing in between my current job.
I even tried applying the same displacements (as the ground surface) to the water plane once, then make some sort of mask out of that and then smooth those displacements again, and then use the generated mask to restrict foam to certain areas. But strangely, I can't even remember if that worked (too much TG experiments makes me
)