diff options
author | Brecht van Lommel <brechtvanlommel@gmail.com> | 2014-05-26 14:50:57 +0400 |
---|---|---|
committer | Brecht van Lommel <brechtvanlommel@gmail.com> | 2014-05-26 15:51:11 +0400 |
commit | 48b053bd445460fab78f34dafb0cb216b8049f00 (patch) | |
tree | cba92d7639fb1082a5e3cd0876780e7aa73d0bdb | |
parent | 0075efc4d201da992d590ef6c6462cd957955068 (diff) |
Fix T40345: cycles volume render + AO pass not working correct.
-rw-r--r-- | intern/cycles/kernel/kernel_shader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_shader.h b/intern/cycles/kernel/kernel_shader.h index 58cec090410..c6a7f9f1570 100644 --- a/intern/cycles/kernel/kernel_shader.h +++ b/intern/cycles/kernel/kernel_shader.h @@ -609,6 +609,9 @@ ccl_device void shader_bsdf_blur(KernelGlobals *kg, ShaderData *sd, float roughn ccl_device float3 shader_bsdf_transparency(KernelGlobals *kg, ShaderData *sd) { + if(sd->flag & SD_HAS_ONLY_VOLUME) + return make_float3(1.0f, 1.0f, 1.0f); + float3 eval = make_float3(0.0f, 0.0f, 0.0f); for(int i = 0; i< sd->num_closure; i++) { |