diff options
author | Lukas Stockner <lukas.stockner@freenet.de> | 2018-01-11 22:03:31 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-01-12 03:34:28 +0300 |
commit | 322f0223d04ac36ecc72cd01c371234da6de643c (patch) | |
tree | c1295dc50a4efd3e0a68d460267345fc5f673fba /intern/cycles/kernel/kernel_accumulate.h | |
parent | cce280dd6767bb4588a301f2b966d1b959b01f6b (diff) |
Cycles: option to make background visible through glass transparent.
This can be enabled in the Film panel, with an option to control the
transmisison roughness below which glass becomes transparent.
Differential Revision: https://developer.blender.org/D2904
Diffstat (limited to 'intern/cycles/kernel/kernel_accumulate.h')
-rw-r--r-- | intern/cycles/kernel/kernel_accumulate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_accumulate.h b/intern/cycles/kernel/kernel_accumulate.h index 7c1b2a015e1..c0f281cae97 100644 --- a/intern/cycles/kernel/kernel_accumulate.h +++ b/intern/cycles/kernel/kernel_accumulate.h @@ -455,7 +455,7 @@ ccl_device_inline void path_radiance_accum_background( #ifdef __PASSES__ if(L->use_light_pass) { - if(state->bounce == 0) + if(state->flag & PATH_RAY_TRANSPARENT_BACKGROUND) L->background += throughput*value; else if(state->bounce == 1) L->direct_emission += throughput*value; |