Description
Hey, huge noob here.
I’m following the first book in rust; once I reached the chapter: « Modeling a Hollow Glass Sphere » I started to have different results than the one you show in the book:
The thing is, after I spent a few hours trying to find a difference between my code and yours, I decided to run your code directly and found a different result than the one in the book (and different than mine as well 😓).
On top is my code, and on the bottom is yours.
I don’t know where the issue is located and am a bit lost, but I’m pretty sure that my code does the same thing as the c++ version, except the two final chapters are not implemented. (and that may explain the slight difference between the two renders I made?)
I pushed my code here if you want to check it out: https://github.com/irevoire/raytracing2. You can run it with cargo run --release
after installing rust.