Fix #33838: light render passes for non-progressive integrator were not correct.

This commit is contained in:
Brecht Van Lommel
2013-01-15 19:17:51 +00:00
parent f146317b09
commit 0967b39be1
3 changed files with 48 additions and 16 deletions

View File

@@ -949,6 +949,11 @@ __device float4 kernel_path_non_progressive(KernelGlobals *kg, RNG *rng, int sam
kernel_path_indirect(kg, rng, sample*num_samples + j, bsdf_ray, buffer,
tp*num_samples_inv, num_samples,
min_ray_pdf, bsdf_pdf, ps, rng_offset+PRNG_BOUNCE_NUM, &L);
/* for render passes, sum and reset indirect light pass variables
* for the next samples */
path_radiance_sum_indirect(&L);
path_radiance_reset_indirect(&L);
}
}