Toon water shader with depth based fog and intersection foam

I’m looking to get more experience with more advanced shaders, and found this great water tutorial. Unfortunately part 3, that is supposed to introduce the more interesting effects like depth based fog and intersection foam, never showed up. I did manage to find what looks like the finished product, though.

Any pointers to similar tutorials, or reading material? Or any tips on where to get started implementing the missing effects (especially the fog part)?

This thread contains some relevant information, though I don’t remember depth based fog being mentioned in it.

1 Like