Why the mirror don't reflect the sea?
KnewHow opened this issue · 2 comments
KnewHow commented
the picture link is: https://github.com/KnewHow/TinyRayTracer/blob/add_background/out.jpg
ssloy commented
Because you need to pick the color from the envmap here:
https://github.com/KnewHow/TinyRayTracer/blob/6ef1a4f33ee572bd1e86e095e6bb6af91478ca64/renderer.cpp#L36
You use the initial ray to pick the color, and the final one is to be used.
KnewHow commented
Thank you very match, I have got it!