diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-09-22 16:37:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-09-22 17:08:45 +0300 |
commit | 53e7c64be7f1c7aebf65aa6082ec51146da387f5 (patch) | |
tree | 00011256c972d206abf641cc31e773c426ed7906 /intern/cycles | |
parent | 368b56c9a132f7a37c638d16fc4c263d211bc4ed (diff) |
Fix T91597: Cycles volume scatter visibility on lights not working
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/integrator/integrator_shade_volume.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/kernel/integrator/integrator_shade_volume.h b/intern/cycles/kernel/integrator/integrator_shade_volume.h index d44890f800e..095a28ac505 100644 --- a/intern/cycles/kernel/integrator/integrator_shade_volume.h +++ b/intern/cycles/kernel/integrator/integrator_shade_volume.h @@ -726,6 +726,10 @@ ccl_device_forceinline void integrate_volume_direct_light(INTEGRATOR_STATE_ARGS, } } + if (ls->shader & SHADER_EXCLUDE_SCATTER) { + return; + } + /* Evaluate light shader. * * TODO: can we reuse sd memory? In theory we can move this after |