Alex Ameye offers 5 ways to draw an outline.
Alex Ameye showcased a cool "wobbly" outline shader he made in Unity, which can make 3D objects cartoonishly hand-drawn-looking as well as turn them into artistic hallucinogenic dreams, depending on the strength of the effect.
The lines are made with edge detection. "This full-screen pass draws lines by detecting discontinuities in the scene and rendering an outline between areas that have a large enough discontinuity between them. Discontinuities can be detected between the depth buffer value, the normal vector, the albedo color or any other data that is made available," Ameye describes in his guide to outlines in Unity.
There, he talk about 5 ways to draw an outline, so if you're interested, make sure to check it out.
You can see his other works, like this cool shader that cuts meshes by planes and spheres, stylized water shader in Unity, a guide on how to use the section map to render clean edge detection outlines, and his visual debug tool for stencil buffer on X/Twitter or Reddit.
Join our 80 Level Talent platform and our Discord server, follow us on Instagram, Twitter, LinkedIn, Telegram, TikTok, and Threads, where we share breakdowns, the latest news, awesome artworks, and more.