Get the latest tech news

Software Rasterizing Hair


Using software rasterization to render hair. Covers point projection, quad software rasterization and segment-space calculations.

For each pixel in the canvas, calculate the value for all 3 edge functions and check if all are negative (or positive depending on vertex winding). I will highlight where it has some issues, but you can always check the demo page for Frostbitten hair WebGPU to see how big of a problem it is in practice. The knowledge from this article should be enough to start implementing techniques from Robin Taillandier and Jon Valdes’s “Every Strand Counts: Physics and Rendering Behind Frostbite’s Hair”.

Get the Android app

Or read this on Hacker News