Other ways to detect edges?

This sounds very interesting. I had a friend talk a bit about this before but would this require overlay materials? I need everything to be done in a single material