Change foam edging on water (help break it up)

Hi guys

Im just starting to try out some stuff in shader graph and im having an issue. I’ve got some cartoon water that detects when it interacts with an object and puts a white outline around it. it currently looks like this:

5096447--502238--upload_2019-10-23_10-26-53.png

The problem is that I want to break up the foam edging to look a bit more realistic. more like this:

5096447--502241--upload_2019-10-23_10-27-29.png
Im not quite sure how I do that in shadergraph. I’ll put a screenshot of what I currently have. Any help would be greatly apprecitated :slight_smile:

Have you thought about multiplying some noise in before your SmoothStep and extending the foam out a bit?
You can even apply scaled sin(time) to the scale to have it vary the foam nicely :slight_smile: