Rendering is a crucial part of computer graphicsit is the conversion of a description of a 3D scene into a photorealistic image for display. From movies to video games, computer-rendered images are pervasive today. Incorporating ideas from a wide range of disciplines, including physics, biology, psychology, and cognitive science, Physically Based Rendering describes both the mathematical theory behind a modern photorealistic rendering system as well as its practical implementation. As each new rendering concept is described, it is also exemplified in code. This method--known as "literate programming"--combines human-readable documentation and machine-readable code into a single source specifically designed to aid comprehension. The result is a stunning achievement in graphics education. Using the ideas and software in this book, practitioners can construct and utilize a full-featured rendering system for creating stunning imagery, and researchers have a robust and up-to-date foundation for exploring the frontiers of this exciting field.