
5. TressFX: Advanced Real-Time Hair Rendering 203
A
A
B
B
C
CB
B
BB
Figure 5.6. The specialized hair antialiasing calculation is performed by finding the
distances between the pixels and the closest hair fiber edge. The blue segments here
represent the distances that are found then used to modify the hair coverage value.
The pixels marked A are nearly a half-pixel distance outside the hair fiber, so their
coverage values will be near 0. Pixels marked B are pixels near the hair fiber edge,
which means these pixels will have coverage values near 0.5. The pixels marked C are
nearly a half-pixel distance within the hair fiber resulting in coverage values close to