How can I create a beautiful outline for meshes aka "Cell Shading"

I see. Maybe you can modify this example for your purposes: Porting example by ChatGPT (Porting from xeogl to Babylon.js) - Demos and projects - Babylon.js