Physically Based Rendering describes both the mathematical theory behind a modern photorealistic rendering system as well as its practical implementation.
A method known as 'literate programming' combines human-readable documentation and source code into a single reference that is specifically designed to aid comprehension. The ideas and software in this book show the reader how to design and employ a full-featured rendering system capable of creating creating stunning imagery.