How to create 2D pixel water shader ?

Hey guys, I’m struggling with finding any tutorial about making pixelized water shader like in Terraria / Celeste or this game GameMaker Devlog: Water Shader & Physics - YouTube.
Maybe someone of you know how to achive this kind of effect or have any helpful tutorial to share :smiley:

Must have in this shader is:

Pixelized wave

Surface outline


Unfortunately I’m totally new in terms of shaders in Unity :confused: I will be very greatful for any kind of tutorial

Here’s some code from GitHub:

It’s a tilemap that holds the position of each water tile. Water prioritises flowing down, then left or right.