well, I also use the difference between the depth values of water and environment, but as I mentioned-this creates hard borders in some cases for the shore line mask...