Book 3, Chapter 10.2 Sampling Directions towards a Hittable - Updates to Hittable List Missing #1256
davidfrogley
started this conversation in
Debugging
Replies: 1 comment 1 reply
-
For things that look like bugs or errors on our part, please create issues. I've spawned #1267 from this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Code listings in chapter 10.2 do not include changes to the
hittable_list
class, which should include an override of thepdf_value
andgenerate
methods from thehittable
base class. Without these, the rendered image uses the default value for both of these (0
forpdf_value
, andvec3(1,0.0)
forgenerate
). This results in a completely black image, except for the light on the ceiling.Beta Was this translation helpful? Give feedback.
All reactions