http://sidneys77crlfslcr7zmj3msmxchgnxhrxlp3p3kbaswo7twchjnicid.onion/programming/2022/03/23/raytracing.html
Additionally, we don’t care about Shape s that intersect with the ray that are further from the origin than the light itself (meaning that Shape is on
the far side of the light), so we’ll initialize our search distance to the distance to the light itself. // Then we'll search for any Shapes that is occluding the light_ray, // using more or less our existing search code. // We initialize closest_distance to...