A variation of my animated water shader supporting foam around obstacles. Unfortunately I can’t prepare a video, but the foam is fully dynamic, it appears around places with small flow and is subject to flow animation. Attached is the archive with the shader, all necessary textures and a demo scene in Unity 3.5.x. Enjoy!
Alternately, blue channel in the flow map could be used for controlling where the foam appears, it’s very straightforward to change in the source code, so you shouldn’t have any trouble.
UPDATE: Thanks to courtesy of Janssens you can watch a video of his game using an improved version of my animated water shader with vertex displacement:
and also download the modified source code: flowmap_vertexdisplacement_shader.zip