DistanceToNearestSurface material node

The point was that Ryan said I have to use a mesh which does NOT generate a distance field to use this node in the material from the mesh. So a landscape would be perfect since it does not generate a distance field.