Water Shader (want to make a toon style)

Well, i mostly want the wind waker look. My only issue now is that I do not know how to get the shorlines to have the whitecaps. What I really would like to do is the following:

  • Setup a transparent system that shows the depth of the water. Deeper it is the less transparent it is (i have this in now, kinda…)
  • Setup whitecaps that spawn throughout the waves (like in wind waker)
  • Setup whitecaps near the shorlines (if it can detech when it is touching the terrain that would be ideal)
  • Setup a color option so i can make different colors of water.

Right now I have what the guy put in place and it doesnt look half bad.

Here is a picture of the current method:
8810dc1cb0cc4afad62d598cc7faba880a01560a.jpeg

Here is a picture of the issue with refraction (dont really need refraction, but i didnt know how to set it up without following his tutorial)
524f01423a0cb13d445d59e5173a6f804bfbd6c8.jpeg

So, i got a few things I am trying to do. I can show you more detailed with a picture if that will help?