Your eyes compute gradients, as part of the shitton of visual processing your brain does to get an estimate of where the local and global minima are.
It is not perfect though, see the many optical illusions.
But we follow gradients all the time, consciously or not. You know you are at the bottom of the hole when all the paths go up for instance.