comes directly from light sources (direct illumination), but also light rays that are reflected by other surfaces (indirect illumination). “Path tracing” falls under the umbrella of “global illumination” algorithms.
algorithm • Simulate billions of random light rays bouncing around the scene • Hundreds or thousands of rays per pixel • Random = different results each time you run it • More rays = less noise in the image
from the camera and through the pixel • Determine the nearest object in the scene that the ray intersects • Cast shadow ray(s) to determine direct lighting • Recursively cast more rays to determine indirect lighting, until some maximum depth is reached