Other ways to detect edges?

Hmm okay, I could try this. I know a lot of toon shaders are using edge detection, is this how they do it? Or should I maybe look into that too?