From c56cf50bd0b68ccbdba17fe715278f08a9cef7e9 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 9 Nov 2021 13:04:37 +0100 Subject: Fix T92876: Cycles incorrect volume emission + absorption handling --- intern/cycles/kernel/film/accumulate.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'intern/cycles/kernel/film/accumulate.h') diff --git a/intern/cycles/kernel/film/accumulate.h b/intern/cycles/kernel/film/accumulate.h index 30e1afea751..33f913a6746 100644 --- a/intern/cycles/kernel/film/accumulate.h +++ b/intern/cycles/kernel/film/accumulate.h @@ -540,11 +540,10 @@ ccl_device_inline void kernel_accum_background(KernelGlobals kg, /* Write emission to render buffer. */ ccl_device_inline void kernel_accum_emission(KernelGlobals kg, ConstIntegratorState state, - const float3 throughput, const float3 L, ccl_global float *ccl_restrict render_buffer) { - float3 contribution = throughput * L; + float3 contribution = L; kernel_accum_clamp(kg, &contribution, INTEGRATOR_STATE(state, path, bounce) - 1); ccl_global float *buffer = kernel_accum_pixel_render_buffer(kg, state, render_buffer); -- cgit v1.2.3