diff options
author | Antony Ryakiotakis <kalast@gmail.com> | 2020-05-23 15:21:49 +0300 |
---|---|---|
committer | Antony Ryakiotakis <kalast@gmail.com> | 2020-05-23 15:21:49 +0300 |
commit | 08c1f5bf335992ff797e9543f50b1b90f96e8369 (patch) | |
tree | 6cba6411b99c0104353be2ab3ee87e0d86eec685 /source/blender/gpencil_modifiers | |
parent | 86fa8dc7f73a38404c276351710a2226d0fc4510 (diff) |
Cycles: Improve sampling of area lights
This patch uses the sampling method described in "A Low Distortion Map Between Triangle and Square" by Eric Heitz.
The benefit is avoiding sqrt in the calculation, which could be cheaper on some architectures, and the result is
more even sampling across the triangle surface.
Based on ideas from
https://pharr.org/matt/blog/2019/02/27/triangle-sampling-1.html
https://pharr.org/matt/blog/2019/03/13/triangle-sampling-1.5.html
Reviewed By: Brecht Van Lommel
Differential Revision: https://developer.blender.org/D6566
Diffstat (limited to 'source/blender/gpencil_modifiers')
0 files changed, 0 insertions, 0 deletions