You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Listing 12 of the book The Rest of Your Life contains a superfluous addition and subtraction operation for hit record point in the lambertian scattering method. It is given as:
Hey! Just realized I haven't added you to the acknowledgements (your feedback is very useful). Can you email me your name so I can include it? → [email protected].
Listing 12 of the book The Rest of Your Life contains a superfluous addition and subtraction operation for hit record point in the lambertian scattering method. It is given as:
I think what is being intended is
point3 target = rec.normal + random_unit_vector(); scattered = ray(rec.p, unit_vector(target), r_in.time());
which avoids adding and subtracting the
rec.p
.The text was updated successfully, but these errors were encountered: