Shader Graph Depth Effect Not Working in Transparent Shader

Hi, I’m trying to create an ice shader for my game using Shader Graph in Unity 6000.0.42f1 with URP. I’m following several tutorials to achieve a depth-based color effect — where the water changes color based on its proximity to other objects.

They all use the same setup (see Image 1), and it should create a black gradient around objects that intersect the mesh. However, in my case, the result is just a flat white color (see Image 2) no matter how many objects are placed inside it.

Depth Texture and Opaque Texture are enabled on both the URP asset (which is correctly assigned in the project settings) and the camera.
The shader works in none of the views: not in Scene View, not in Game View.