Other ways to detect edges?

the fresnel will detect the angle or the face, so it won’t work with a flat plane.
You could use distance fields to blend edges