I’m looking to implement the “representative point method” described here for specular lighting of area lights:
I’m new to optix and just wanted a sanity check if my approach is the right way:
I was going to store the area lights in a geometry group, say “lights_top”. Then when my camera rays hit something, I would recurse with another rtTrace against the lights_top group with the reflected ray. Then write the Hit/Miss programs for the reflected light ray to get the representative point.
Or would it be better to loop over the area lights instead of recursing?