Spirit Crossing: Waterfall Shader

A shader I created for various waterfalls in the game. I used a handpainted mask texture for the foam which is eroded towards the top of the waterfall mesh, in addition to a “foam flecks” texture which scrolls at a different rate in order to add visual interest. The UVs are used to distort the texture – the texture starts compressed near the top, gradually becoming stretched & increasing in speed towards the bottom to create the illusion of acceleration due to gravity.

A procedural waving line of “highlights” is also added to the top edge of the waterfall, inspired by the look of water in anime.