diff options
-rw-r--r-- | intern/cycles/kernel/kernel_path_state.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_path_state.h b/intern/cycles/kernel/kernel_path_state.h index c3f617542a6..457082485e1 100644 --- a/intern/cycles/kernel/kernel_path_state.h +++ b/intern/cycles/kernel/kernel_path_state.h @@ -132,6 +132,9 @@ ccl_device_inline uint path_state_ray_visibility(KernelGlobals *kg, PathState *s /* for visibility, diffuse/glossy are for reflection only */ if(flag & PATH_RAY_TRANSMIT) flag &= ~(PATH_RAY_DIFFUSE|PATH_RAY_GLOSSY); + /* todo: this is not supported as its own ray visibility yet */ + if(state->flag & PATH_RAY_VOLUME_SCATTER) + flag |= PATH_RAY_DIFFUSE; /* for camera visibility, use render layer flags */ if(flag & PATH_RAY_CAMERA) flag |= kernel_data.integrator.layer_flag; |