Other ways to detect edges?

Okay, doesn’t sound like the best solution then. Is there another better way of doing the material overall maybe? Besides just blending the edges?