A camera view ray intersects a surface at the 3D point . For each light source, we will generate a shadow ray and use closest_intersect to find whether there's an object blocking the light source. The closest_intersect function is called as follows:
xxxxxxxxxx11closest_intersect(objs, Ray(orig, dir), tmin, tmax)The objs argument is just a list of objects in the scene - we'll assume that's taken care of.
orig, ray dir, tmin and tmax for the shadow ray. Note: in this class we will follow the convention that points towards the directional light source and thus points opposite the direction that light is actually "traveling".orig, ray dir, tmin and tmax for the shadow ray.