http://sidneys77crlfslcr7zmj3msmxchgnxhrxlp3p3kbaswo7twchjnicid.onion/programming/2022/03/23/raytracing.html
std :: optional < olc :: Pixel > reflected_color = SampleRay ( reflection , bounces ); // Finally, mix our Shape's color with the reflected color (or Fog color, in case // of a miss) according to the reflectivity. final_color = lerp ( final_color , reflected_color . value_or ( FOG ), intersected_shape . reflectivity ); } Note Running our project at this point produces a beautifully rendered scene where the center and left Sphere s reflect
their surroundings - and a sharp...