raytracing.github.io icon indicating copy to clipboard operation
raytracing.github.io copied to clipboard

[Book 3] Listing 44 to Listing 46, the `scatter()` method in class diffuse_light may need to be marked as removed

Open InchChou opened this issue 2 years ago • 0 comments

In book 2 chapter 7.1 we introduce class diffuse_light and implement method scatter().

Book 3 Listing 44 change the signature of scatter() of parent class material, so all the derived class should also be changed. But we can't find diffuse_light's scatter() method that modified in book 3.

So the scatter() method in class diffuse_light may need to be marked as removed or changed the signature to match the material::scatter()'s signature.

InchChou avatar Feb 06 '24 02:02 InchChou