Post

I want to share some insight in how I render outlines in a lot of projects ๐Ÿ‘‡ There are some methods and tricks that have served me well over the years linework.ameye.dev/section-map/

11 reposts49 likes

The core of the method is that I have a 'section map' pre-pass. This section map contains info about objects and surfaces and where a line should be drawn between them.

The edge detection shader then looks at this section map, and uses it to render lines! So not depth/normals/color needed, only the section map!

There are several ways to create this section map, I use a combination where each object gets an object ID + vertex color painting to assign different sections to different surfaces. I also have some in-editor painting tools to author the section map.