Book 2: Chapter 4, sequence issue with lambertian constructor #1301
silvercorked
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Book 2 chapter 4 section 2 concludes by passing a shared ptr of the newly created checker_texture class into to the make_shared function (Listing 25).
An image is then shown, implying the code should be runnable. However, by this point, lambertian has no constructor that takes a shared_ptr. That constructor is introduced later in chapter 4, section 4 (Listing 30).
It may be useful to introduce the constructor changes to the children of the material class before Listing 25, as walking through this awesome tutorial, I ended up having trouble here.
Beta Was this translation helpful? Give feedback.
All reactions