This project was a test task for Unity technical artist role.
"Task: You are given a terrain mesh with an empty hole. The goal is to create a scene in Unity using that terrain, where clicking inside the hole will fill that hole with water".
The return period was only 24 hours.
So not all code was written from scratch. Most of hlsl function libraries have been reused from my previous game projects.
This water shader supports:
- underwater caustics
- subsurface scattering
- sun specular effect
- surface planar reflections
- underwater refraction
- shallow water off the coast
- Vertex deformation of the Gerstner wave
This project was built in Unity 2020.3.18f1