The curvature from tangent space normal map material function lets you detect convex and concave edges separately in real time, and they can be used for edge wear or other effects. The material function works with any tangent space normal map, whether it was baked using one smoothing group, uv splits along uv splits, tiling normal maps, trim sheets, and even mirrored ones. In other words, any ts normal map can be used with it. The red channel of the output contains the concave edges, and the green channel has the convex ones in it. The material function was compiled using Unreal Engine 4.19, so it works in that version, and above it.
For additional support, you can contact me here: