It gives you the world position to then access anything else you need. The start is to subtract the water Z, and then you add whatever displacement. You can map a world aligned texture to the world position of the screenpos and then use the result to offset the water Z. Then you have a black and white mask to blend between whatever you end up doing underwater and the raw SceneTexture for above water.