How to blur the "Distance To Nearest Surface" mask in a certain direction?

Generally blurs are achieved by taking multiple samples from different positions and then compositing them together. So you have the right idea of offsetting the sample point. But to properly blur you need to repeat the sample several times from different spots. Usually the more samples, the smoother the blur, but the more expensive.