Blender Git Loki

Git Commits -> Revision 9f4fe1d

January 20, 2017, 10:24 (GMT)
Cycles: Stop lamp sampling if the lamp isn't visible

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

Commit Details:

Full Hash: 9f4fe1df8dcb0e9028a0614d296203e2182780fb
Parent Commit: f1fe4eb
Committed By: Sergey Sharybin
Lines Changed: +110, -114

4 Modified Paths:

/intern/cycles/kernel/kernel_light.h (+14, -9) (Diff)
/intern/cycles/kernel/kernel_path_surface.h (+36, -36) (Diff)
/intern/cycles/kernel/kernel_path_volume.h (+39, -49) (Diff)
/intern/cycles/kernel/split/kernel_direct_lighting.h (+21, -20) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021