raytracing.github.io
raytracing.github.io copied to clipboard
Book 3 Section 12.1 Listing 37: Code and screenshot 9 do not match
Listing 37 lists a dielectric sphere in place of the shorter box, but the screenshot still shows the box.
Listing 37 also does not compile because we pass in a hittable_list of lights to ray_color, but have not yet implemented (for hittable_list) the pdf_value or random methods at this point in the code that are needed bit the hittable_pdf light_ptr.
The first part is already covered in the dev-major branch. I opened issue #1084 and found out that the image / code were fixed on the branch.
Looks like this was fixed.