How to blur the wirefram node. matel damaged only on the borders

Is it possible to blur the wireframe node?

I wan to make a material where the matel is damaged only on the borders of an object.

So if you have cube there is only damaged to the borders or points of that cube.

In know thath i can do this in substance painter.

is there anybody with an Idee.

This is usually known as dirtmap, cavity map or AO map and is unfotunately not available in Cycles. There is a workaround with the pointines attribute in the Geometry node which works halfways decently but it is not as good as the possibilities you might know from other 3d programs. Here is a thread on stackexchange that shows the workaround: