Fluidsimulation, Unity, Realtime, Fog, Volumetric.
depth written to a render target. One small detail is that I map the depth values from -1–1 to 0–1 in shader, since that is how unity expects them. Figure -7- Render Obstacle Depths Your depth map should look like something like this: Figure -8- Depth Map Creating a Obstacles Mask from Depth Map