Blender Git Loki
Git Commits -> Revision e716f10
Revision e716f10 by Lukas Stockner (blender-v2.78b-release, blender-v2.78c-release, fracture_modifier, fracture_modifier-master, temp-fracture-modifier-2.8) January 20, 2017, 10:25 (GMT) |
Cycles: Use correct light sampling PDF for MIS calculation with Branched Path Tracing The light sampling functions calculate light sampling PDF for the case that the light has been randomly selected out of all lights. However, since BPT handles lamps and meshlights separately, this isn't the case. So, to avoid a wrong result, the code just included the 0.5 factor in the throughput. In theory, however, the correction should be made to the sampling probability, which needs to be doubled. Now, for the regular calculation, that's no real difference since the throughput is divided by the pdf. However, it does matter for the MIS calculation - it's unbiased both ways, but including the factor in the PDF instead of the throughput should give slightly better results. Reviewers: sergey, brecht, dingto, juicyfruit Differential Revision: https://developer.blender.org/D2258 |
Commit Details:
Full Hash: e716f10ba91fd6a162867ef3cd5225d259bd87e5
Parent Commit: e04cc46
Committed By: Sergey Sharybin
Lines Changed: +15, -12