What is this effect called, underwater distortion?

I'm trying to find a modern version of this effect. It was a shader back from Unity 4 that created an underwater effect. I've been searching and searching and can't find anything similar and want to make sure I have my search term correct. If I was to try to search for how to do it with visual effect graph or shader graph what's the term I need to be looking for?

https://www.youtube.com/watch?v=uvU50tmblT4

something like water refraction
https://catlikecoding.com/unity/tutorials/flow/looking-through-water/
https://discussions.unity.com/t/851875/3
https://portamedia.studio/quick-tip-simple-uv-distortion-in-unity-shader-graph/

1 Like

You wouldn't get a wobbling refraction in an aquarium, though. The wobble effect happens because of waves but there are no waves between the glass and the water. You do get refraction but it's constant.

As you can see here, the wobble effect only happens at the surface.
https://mobile.twitter.com/Khena_B/status/1555494129513238528

2 Likes

I used this for a refraction shader in the URP: https://www.codinblack.com/glass-shader-using-shader-graph-in-unity3d/

If it is behind glass and uses render texture or buffer, simply scroll a normal map on the glass, like a heat shimmer. This is done by mixing the normal map with UVs.

Alternatively, in the base vertex shader for underwater things, apply some form of consine math to add to the vertex position before output.

It doesn't have an official name on account of it being done in mostly 2 ways: distorting texture coordinates or distorting vertex positions. Simple to understand though, and easy to get help with.

3 Likes