Fix volume scatter render issue introduced by recent bugfix.
This commit is contained in:
@@ -132,6 +132,9 @@ ccl_device_inline uint path_state_ray_visibility(KernelGlobals *kg, PathState *s
|
|||||||
/* for visibility, diffuse/glossy are for reflection only */
|
/* for visibility, diffuse/glossy are for reflection only */
|
||||||
if(flag & PATH_RAY_TRANSMIT)
|
if(flag & PATH_RAY_TRANSMIT)
|
||||||
flag &= ~(PATH_RAY_DIFFUSE|PATH_RAY_GLOSSY);
|
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 */
|
/* for camera visibility, use render layer flags */
|
||||||
if(flag & PATH_RAY_CAMERA)
|
if(flag & PATH_RAY_CAMERA)
|
||||||
flag |= kernel_data.integrator.layer_flag;
|
flag |= kernel_data.integrator.layer_flag;
|
||||||
|
Reference in New Issue
Block a user