A Path Tracer

One bounce at a time, from a single ray to ten million triangles.

SAN MIGUEL  ┇  ~10M TRIANGLES  ┇  CPU PATH TRACED  ┇  DENOISEDSource

The path tracer starts with a question: what does this ray hit? Five chapters of answering it turn a single ray into the San Miguel courtyard at ten million triangles, lit by an HDR sky and a hundred small lamps. Each chapter breaks an assumption the previous one was hiding behind.

The rendering equation does not change across the five chapters. What grows around it is the bookkeeping: acceleration, sampling, materials, transmission, scale. Each addition unlocks an image the previous chapter could not produce.

CHAPTER 01 / 05 · Ray Casting

First Hit

A CPU ray caster: sphere, box, cylinder, triangle, and the BVH that drops a single frame from 89 seconds to 130 milliseconds.

Ray–primitive intersectionBVHMöller–Trumbore
2026 · FEB · 04Read the chapter
CHAPTER 02 / 05 · Path Tracing

Light Finds Its Way

Monte Carlo path tracing: cosine-weighted BRDF sampling, Russian roulette, and the shadow rays that reach a clean image in a tenth the passes.

Monte Carlo integrationCosine-weighted samplingRussian Roulette
2026 · MAR · 01Read the chapter
CHAPTER 03 / 05 · Microfacet BRDFs

Mirrors

The Cook–Torrance microfacet BRDF — Phong NDF, Smith masking, Schlick Fresnel — and the multiple importance sampling that kills the fireflies it introduces.

Cook-TorrancePhong NDFSmith G
2026 · MAR · 14Read the chapter
CHAPTER 04 / 05 · Transmission

Through Glass

A transmission lobe added to the BRDF: Snell refraction at every microfacet, total internal reflection, Beer's-law tint, and the power-heuristic MIS that quiets the sharper lobe.

Snell refractionMicrofacet BTDFTotal Internal Reflection
2026 · MAR · 29Read the chapter
CHAPTER 05 / 05 · Image-Based Lighting & Scale

The Room Itself

Scaling to San Miguel and the Bistro: importance-sampled HDR environment lighting, an area light aggregated from every emissive triangle, a binary scene cache, and offline denoising.

HDR Environment MapImportance-sampled CDFArea Light from emissive geometry
2026 · APR · 14Read the chapter