A watery respite (breakdown)
The video shows a breakdown of my latest water shader, made with Unity using URP. The shader features the following.
- Distance based colouring
- Vertex displacement
- Blinn-Phong specular reflection
- Height derivative maps, for flow dependent normals
- Flow map UV distortion
- Transparency with underwater tinting
- Tri-planar projected caustics
- Additional fake specular effects
- Interactive ripple particles that affect flow
- Planar reflections
The caustics and ripple particles can be seen better in the following clip.
This shader was inspired by the following references/tutorials, which are ordered by content creator.
- Alan Zucconi
- A great introductory tutorial on making believable caustics
- Half Past Yellow
- Jasper Flink (Catlike Coding)
- Joyce (Minions Art)
- Ned (NedMakesGames)
- The projected tri-planar mapping requires scene normals, which Ned has a tutorial on using SRP’s render features.
- Simon Trümpler (Simon schreibt)
- His talk about the water of Rime was the main inspiration for this shader
- Unity (you know, the game engine company)
- A script from their boat attack demo project is used to for sampling planar reflections