Fix Cycles wrong MIS logic in shade_light kernel after recent changes

Though end result was still correct. Thanks to Alaska for spotting this.
This commit is contained in:
Brecht Van Lommel 2022-09-08 15:11:27 +02:00
parent 173d8edb0b
commit 4ac69c26db
1 changed files with 1 additions and 2 deletions

View File

@ -62,8 +62,7 @@ ccl_device_inline void integrate_light(KernelGlobals kg,
/* multiple importance sampling, get regular light pdf,
* and compute weight with respect to BSDF pdf */
const float mis_ray_pdf = INTEGRATOR_STATE(state, path, mis_ray_pdf);
const float mis_weight = light_sample_mis_weight_forward(kg, mis_ray_pdf, ls.pdf);
light_eval *= mis_weight;
mis_weight = light_sample_mis_weight_forward(kg, mis_ray_pdf, ls.pdf);
}
/* Write to render buffer. */