Getting the Y coord from CameraDepthTexture or similar

I’ve been using_CameraDepthTexture to tint underwater objects based on the amount of water that the viewer is looking through, but I also need to get the Y coord of the geometry for a different effect (simulating waves that follow the coastline). Is there any way to do this?

Search for getting world space position from depth buffer.