The first masking shader of a collection of shaders I've been working on for Blender.
You can get the shader here: https://blendermarket.com/products/edge-wear
Thanks to Mike Pan, Moran Goldstein, Ben Dansie and Mark T for the models.