Fix volume scatter render issue introduced by recent bugfix.
This commit is contained in:
parent
1754c0de33
commit
e0857ad152
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue