Edge (not outline) highlight shader

Hi Just wondering if a shader that highlights edges in a mesh (not outlines) is possible. This image should explain the effect I’m looking for. Obviously this can be achieved via texture work, but if I can run it as a shader I can create the effect with much less effort (can ignore uv mapping and texturing as I’m aiming for solid color models). Also I can then apply it to models that have already been textured.

[3380-\capture.png|3380]

You’ll probably want to use an edge-detection base shader that compares normals instead of depth and just change the output based on the coloring style you want. That way you can specify how much of a difference in normal angle represents an edge to highlight! Take a look at the edge detection algorithm in these Unity sample files: