Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-11-09 15:04:37 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-11-09 15:04:58 +0300
commitc56cf50bd0b68ccbdba17fe715278f08a9cef7e9 (patch)
treec3f5be89522f9a562f813e3d0db92a6834a41d87 /intern/cycles/kernel/film/accumulate.h
parent04b4ec78898b53dab7ad898736a883353a3eaaed (diff)
Fix T92876: Cycles incorrect volume emission + absorption handling
Diffstat (limited to 'intern/cycles/kernel/film/accumulate.h')
-rw-r--r--intern/cycles/kernel/film/accumulate.h3
1 files changed, 1 insertions, 2 deletions
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);