Mesh Element Border Edge Material Effect?

Hi there,

I’m trying to create a material that will find the edge of any given mesh element and draw a border with modifiable thickness. These elements could be any shape, and will be independent entities.
I know I could do this by unwrapping each chunk and exporting uvw renders as masks, but Im looking for something that wont be impacted by texture resolution, and cuts down on workload. I’ve found plenty of tutorials on general shilouette borders, but I need this to account for every edge and am struggling to find a solution.

Example of the sort of result Im looking for:

image

Any assistance would be much appreciated.