When I visualize Distance Field Ambient Occlusion in the editor, I can see the correct shape of objects.
However, when I try to do something similar with a material using DistanceToNearestSurface, the shapes look strange. Also I would expect to see a gradient and not only black and white.
It feels like I’m not understanding distance fields correctly. Can anyone point me into the right direction?