Farcry-like water's edge?

I just saw “Farcry” for the first time yesterday (yeah, I’m a bit behind the times) and want to try to recreate the same level of outdoor graphics in another game engine. I think I have a handle on the trees and vegitation, the terrain and even the water. But what’s got me stumped is this, how did they create that animated water’s edge in the looping animation in the beginning? The water’s movement up and down the beach with the slight amount of foam is very realistic. Any hints on how to accomplish this?