Cycles Material With Edge Detection?

I was tweaking the material of my 3d model of a rifle and so I managed to create realistic gun metal material but something is missing, the edges need to have the paint worn off. Can I simulate that effect within blender cycles without doing some extra Photoshop work? Can you give a brief example node set-up?

Take a look at this thread:

Also take a look at the material about half way down this page - might give you some pointers

also maybe take a look at this tutorial

You might want to have a loot at those add ons:…ved-pointiness…ering-node-kit

Thanks guys. Might save me some Photoshop work