Cycles: Direct multi light sampling in the Branched Path Integrator is optional now.

Disabling this can improve performance, when we need a lot of AA Samples anyway, to clear up the render.

Simple example .blend: http://www.pasteall.org/blend/27582

Differential Revision: https://developer.blender.org/D392
This commit is contained in:
Thomas Dinges
2014-03-15 17:36:44 +01:00
parent cb4c49ad97
commit 211f08d89b
7 changed files with 19 additions and 6 deletions

View File

@@ -957,7 +957,8 @@ ccl_device_noinline void kernel_branched_path_integrate_lighting(KernelGlobals *
PathState *state, PathRadiance *L, ccl_global float *buffer)
{
#ifdef __EMISSION__
kernel_branched_path_integrate_direct_lighting(kg, rng, sd, state, throughput, num_samples_adjust, L, true);
bool all = kernel_data.integrator.sample_all_lights_direct;
kernel_branched_path_integrate_direct_lighting(kg, rng, sd, state, throughput, num_samples_adjust, L, all);
#endif
for(int i = 0; i< sd->num_closure; i++) {