Is there any alternative ddx ddy for calculating normals when use DistanceToNearSurface?

Landscape (sand) + Rectangle with High Poly mesh (water).