XDLXDL
The water turns to a solid foamy colour when it touches the shore. This is done by comparing the distance between the transparent water pixel to the terrain behind it using the depth buffer. I learned how to do this by following this tutorial: · XDL