People use edge detection on a pixel shader level not on the material node itself. In unreal it’s usually a custom shader node.