This is my outline shader. It has customizable thickness, quality and color. It works with surfaces too.
I'm not experienced with shaders, so some of you advanced users might spot something stupid in the code. If that is the case, please do tell me, I'd love to improve it!