forked from bartvdbraak/blender
b459d9f46c
Both spot and area light have large areas where they're not visible. Therefore, this patch stops the light sampling code when one of these cases (outside of the spotlight cone or behind the area light) occurs, before the lamp shader is evaluated. In the case of the area light, the solid angle sampling can also be skipped. In a test scene with Sample All Lights and 18 Area lamps and 9 Spot lamps that all point away from the area that the camera sees, render time drops from 12sec to 5sec. Reviewers: brecht, sergey, dingto, juicyfruit Differential Revision: https://developer.blender.org/D2216 |
||
---|---|---|
.. | ||
kernel_background_buffer_update.h | ||
kernel_data_init.h | ||
kernel_direct_lighting.h | ||
kernel_holdout_emission_blurring_pathtermination_ao.h | ||
kernel_lamp_emission.h | ||
kernel_next_iteration_setup.h | ||
kernel_scene_intersect.h | ||
kernel_shader_eval.h | ||
kernel_shadow_blocked.h | ||
kernel_split_common.h | ||
kernel_sum_all_radiance.h |