cell shading

Hi all,
I was wondering if anyone knew about an example where cell-shading was implemented but without the use of three.js library. I am interested in the part of drawing the object’s edge or contour so I can make it black and thickner. I believe this part must run in the fragment shader but i still haven’t made and an idea of what pipeline follows webGL…

many thanks!

Johan