Ray Tracing, Distributed Systems, Python, Graphics, Programming.
Given that we want to perform the recursive ray-tracing in Ray, I extract this logic to its own function. By decorating this function with ray.remote, I enable it to run as a task in a distributed context. In addition, the previous iteration of the function calculates the result, then immediately