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:13:56 +0300
commit6c24cafecc9e8353781080ebdc81ae67f9292d3b (patch)
treeea43a296e3a12a5e59e7dd059c9fcc2eb86c9ff8 /intern/cycles/kernel/film
parentcb487b650772cf50e63965f31cd40010cfab4bec (diff)
Fix T92876: Cycles incorrect volume emission + absorption handling
Diffstat (limited to 'intern/cycles/kernel/film')
-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);