I made this shader for a hyper casual mobile game. It is very cheap to compute and achieves the visual feedback that I needed. I should say that it doesn’t work well with low vertex count meshes since the offset calculation and the animation is done on the vertex shader.
I learned about:
- Using textures to animate vertex coordinates in vertex shader.
- Overriding the Unity’s lighting with custom lighting to match the color and shading of the liquid to the game’s art style.
You can try the game from the link below: