This is importance sampling like we did in the raytracing project. How can we generate an importance sampling scheme for more complicated scenes, like for points that are strongly illuminated by the reflection of a light source? Would we do a course sampling of all directions, and then produce an importance function based on the preliminary results of the impact of each of those sampled directions?

This is importance sampling like we did in the raytracing project. How can we generate an importance sampling scheme for more complicated scenes, like for points that are strongly illuminated by the reflection of a light source? Would we do a course sampling of all directions, and then produce an importance function based on the preliminary results of the impact of each of those sampled directions?