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

Missing ray.time in scatter function

Open Bloov opened this issue 9 years ago • 3 comments

It seems that you are forgotten to pass the r_in.time into the constructor of the scattered ray in some of materials.

motion_blur_error

Bloov avatar Mar 06 '17 13:03 Bloov

GOOD CATCH!

You are correct.

Thanks

Pete

On Mon, Mar 6, 2017 at 6:12 AM, Artyom [email protected] wrote:

It seems that you are forgotten to pass the r_in.time into the constructor of the scattered ray in some of the materials.

[image: motion_blur_error] https://cloud.githubusercontent.com/assets/1876286/23611300/95e26ba4-0287-11e7-8765-1e0f72ad3a57.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/petershirley/raytracingthenextweek/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ACq6ii0w2p2uHAega8BdjD-TL0FyShk8ks5rjAZMgaJpZM4MUIV0 .

petershirley avatar Mar 06 '17 13:03 petershirley

This is still present in Book 2. The fix needs to be applied in metal and dielectric. The image in the online book also needs to be updated.

define-private-public avatar Aug 18 '20 04:08 define-private-public

More specifically, listing 5 should apply the same modification to class metal and class dielectric.

hollasch avatar Sep 11 '20 19:09 hollasch