Other ways to detect edges?

This looks like it’s exactly what I’m looking for! Could you show me the material setup?