Technical Illustration
Edge Lines Algorithm
- Draw offset object, using glPolygonOffset
- Disable depth writes
- Draw back or front faces line mode, toggling stencil, color writes disabled
- Draw window-sized polygon setting pixels where stencil is 1
- Draw feature edges as lines