Rasterization: how a GPU turns triangles into pixels
12 steps · about 6 h 35 min · Intermediate
- The Raster Graphics Pipeline (article, geometrian.com, 15 min)
A short overview of the whole pipeline, so you know where rasterization sits before the details.
- WebGPU Unleashed: The GPU Pipeline (tutorial, WebGPU Unleashed, 15 min)
Describes the four classic stages (vertex, rasterization, fragment, blending) with a simple factory analogy.
- Rasterization: the big picture (video, YouTube, 15 min)
Shows the overall structure of a simple triangle rasterizer before you meet the maths.
- An Overview of the Rasterization Algorithm (tutorial, Scratchapixel, 30 min)
Contrasts ray tracing with rasterization and introduces projection and bounding boxes.
- Rasterization: Projection Stage (tutorial, Scratchapixel, 30 min)
Covers how 3D vertices are projected to screen space, which has to happen before any pixels are tested.
- The Rasterization Stage (tutorial, Scratchapixel, 40 min)
Teaches the core step: edge functions, barycentric coordinates and the top-left rule.
- Barycentric Coordinates + Z-Buffering (video, YouTube, 50 min)
A lecture that reinforces interpolation and shows how overlapping triangles are resolved by depth.
- Perspective Correct Interpolation and Vertex Attributes (tutorial, Scratchapixel, 30 min)
Fixes the distortion that naive interpolation causes on perspective triangles.
- Rasterization: a Practical Implementation (tutorial, Scratchapixel, 1 h)
Puts projection, edge tests, depth buffer and interpolation together in working code you can compile.
- Triangle rasterization in practice (article, The ryg blog, 30 min)
Shows how to make your rasterizer fast and exact with integer coordinates and incremental edge updates.
- (Triangle) Rasterization and Setup (article, A Trip Through the Graphics Pipeline (Fabian Giesen, GitHub clone), 40 min)
Shows how real GPU hardware does it: coarse and fine tiles, 2x2 pixel quads and triangle setup.
- A trip through the Graphics Pipeline 2011, part 7 (article, The ryg blog, 40 min)
Closes with hardware-level interpolation and early-Z, which explain why GPUs can skip shading hidden pixels.