I’m stuck with this problem:
I have 2 materials : a water material and a sand material.
I’m trying to get the value of the water depth world based by the Z axis ( not camera based ).
I tried a lot of node like depthfade ,WorldPositionBehindTranslucency , pixel/scene depth , … that give me value like the green or the orange one but i’m looking for the black value.
What i got : (If the camera don’t see the sand under water the node don’t give the height value)
What i’m trying to do: (I want that even if the camera don’t see the sand under the water the node give the height value )