Fluid Surface Shader

a simple UE4 shader that simulates the fluid surface

This is a nice little shader I had written for UE4 (because unfortunately UE5 does not support displacement). The CPU passes the current wave causing points to the GPU, and let GPU calculate the surface displacement. I am using a simple sine wave as the curve for the displacement, and the final result is surprisingly convincing and cool! Besides clicking the surface to cause waves, a boat is also there for the interaction.

Clicking the surface to cause waves.
The simulation of the waves causing by the boat is convincing and realistic.