diff --git a/README.md b/README.md index ee21705..c140cc7 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,13 @@ It took me some time to find the error and believe it or not, it was the 3% inac ### Chapters 10 and 11: Extra camera utilities and depth of field (blur) -I implemented the camera to be movable and also simulated the lens blur effect we see in cameras. I get the following output: +I implemented the camera to be movable and also simulated the lens blur effect we see in cameras. The blur effect can be emulated by implemented the following six steps: +1. The focus plane is orthogonal to the camera view direction. +2. The focus distance is the distance between the camera center and the focus plane. +3. The viewport lies on the focus plane, centered on the camera view direction vector. +4. The grid of pixel locations lies inside the viewport (located in the 3D world). +5. Random image sample locations are chosen from the region around the current pixel location. +6. The camera fires rays from random points on the lens through the current image sample location. I get the following output: