How can I make a shader that shows edges of a plane?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gravit22

I need a shader that marks edges of a plane. Ideally, the body of a plane should be transparent, and edges are visible(dark). Also, the thickness of an edge should be adjusted.
Thank you for your attention.

Is your aim to give something an outline? If so, maybe this shader would help you.

Ertain | 2022-09-27 12:25

There are also quite a number of other outline shaders on the same site. For instance:

jgodfrey | 2022-09-27 16:52

For some reason, I have no option to get an actual shader on the site.
enter image description here

gravit22 | 2022-09-28 09:48