Worn Edges

Hello,

I’m trying to create material that has scratches on it and worn edges. So far i get scratches to work but don’t know how to do worn edges.
This is how it looks now:



And this is node setup:

And my question is: How to make worn edges and where to connect nodes?

Thanks :slight_smile:

Thank you RickyBlender, with the help of that addon you gave link to i managed to do something better
Here are the results




And here is node setup mixed with main texture posted above


Node group with Attribute at the begining is factor and node group above is worn edge material.

Is there a way to randomize worn edges? I mean on part of the edge there would be paint and on other there would be scratched material. On statue i painted some of the edges, but is there automated way of doing this?