Cycles: add transparent shadow support, i.e. shadows through Transparent BSDF
[blender.git] / intern / cycles / kernel / kernel_bvh.h
index df7663b5555fa8b0edf3d37366f08f16fe05a5ef..b5f59b945166972f0b5b9eb162d8a9a43a572552 100644 (file)
@@ -253,7 +253,7 @@ __device_inline bool scene_intersect(KernelGlobals *kg, const Ray *ray, const ui
                                                bvh_triangle_intersect(kg, isect, P, idir, visibility, object, primAddr);
 
                                                /* shadow ray early termination */
-                                               if(visibility == PATH_RAY_SHADOW && isect->prim != ~0)
+                                               if(visibility == PATH_RAY_SHADOW_OPAQUE && isect->prim != ~0)
                                                        return true;
 
                                                primAddr++;