please, I have two questions regarding path tracing:
- when doing "importance sampling" (is this the same as "emitter sampling"?), do I have to "[l]oop over any lights" and add their contributions to final result or is it also ok just to pick one light randomly, multiply its contribution by the number of lights and add this to the result?
- when reading the source of http://kevinbeason.com/smallpt/, on line #55 there is this
Code: Select all