Set up your mesh data so that adjacency information is included. As just mentioned, this probably requires expanding the element index array to include the additional information. This can be done by passing through your mesh and looking for shared edges. Due to space limitations, we won't go through the details here, but the blog post mentioned some time back has some information about how this might be done. Also, the source code for this example contains a simple (albeit not very efficient) technique. The important uniform variables for this example are as follows:
- EdgeWidth: This is the width of the silhouette edge in clip (normalized device) coordinates
- PctExtend: This is a percentage to extend the quads beyond the edge ...