Silhouette Edges
The Algorithm
- Disable color and Z, enable stencil write of 1
- Draw object shifted by one left, right, up, and down
- Enable stencil write of 0
- Draw object at original position
- Enable color and Z if you want to see it
- Enable drawing where stencil = 1
- Draw a rectangle in silhouette color over region of object