This one looks better doesn’t it? I did it by specifying:
h(0, z) = h(1, z) and
h(x, 0) = h(x, 1)
and fixing the wave parameters to comply.
Maybe you can discern some artifacts in the snapshot, something that I did wrong?
The only thing remaining now for me is to figure out how to do bump mapping, reflections and I’ll probably have what is called environmental bump mapping. I’ve noticed that many programs attenuate what they reflect. Do they simply multiply the reflected colors with a coefficient < 1? I’ll probably have to model the sun using a directed light no? Do I use Phong shading for water? I’ll be grateful for every hint you may have for me.