Id map corner borders I am painting my model in substance painter. My end goal is to be able to have a clear black border at each corner. Line this:

After asking around, it was suggested to me to do an id map like below. The person who suggested that did it in 2 seconds, but didnt want to explain how he did it ... So I am asking here. Is it possible to isolate all the edges and then bake id map based on them in Blender? I have been struggling to do that for 3 days, but each method I try isnt nearly as clear/precise as the id map below.
Ok I finally figured it out. It is not as good as the color map from above, but its close enough... Here is what I did, if anyone has the same problem:
Add those nodes in the blender shader nodes and click on viewport shading (with cycles renderer) You can adjust the border from the bevel node.