Art, Rendering, Ray Tracing, Creative Coding, Graphics.
direction from the collision point to the light (you can also see this as firing a new ray), we record the collision so we can step through it later and we increase the number of bounces taken thus far. If there is no collision we record the increase in distance traveled and advance the ray again.