Cycles: Fix wrong transparent shadows for motion blur hair
This was a missing bit from b53ce9a.
This commit is contained in:
parent
14f6e27f6a
commit
e5a665fe24
@ -187,7 +187,7 @@ bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
|
||||
|
||||
/* primitive intersection */
|
||||
while(prim_addr < prim_addr2) {
|
||||
kernel_assert(kernel_tex_fetch(__prim_type, prim_addr) == type);
|
||||
kernel_assert((kernel_tex_fetch(__prim_type, prim_addr) & PRIMITIVE_ALL) == p_type);
|
||||
|
||||
bool hit;
|
||||
|
||||
@ -222,6 +222,7 @@ bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
|
||||
#if BVH_FEATURE(BVH_HAIR)
|
||||
case PRIMITIVE_CURVE:
|
||||
case PRIMITIVE_MOTION_CURVE: {
|
||||
const uint curve_type = kernel_tex_fetch(__prim_type, prim_addr);
|
||||
if(kernel_data.curve.curveflags & CURVE_KN_INTERPOLATE) {
|
||||
hit = bvh_cardinal_curve_intersect(kg,
|
||||
isect_array,
|
||||
@ -231,7 +232,7 @@ bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
|
||||
object,
|
||||
prim_addr,
|
||||
ray->time,
|
||||
type,
|
||||
curve_type,
|
||||
NULL,
|
||||
0, 0);
|
||||
}
|
||||
@ -244,7 +245,7 @@ bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
|
||||
object,
|
||||
prim_addr,
|
||||
ray->time,
|
||||
type,
|
||||
curve_type,
|
||||
NULL,
|
||||
0, 0);
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ ccl_device bool BVH_FUNCTION_FULL_NAME(QBVH)(KernelGlobals *kg,
|
||||
|
||||
/* Primitive intersection. */
|
||||
while(prim_addr < prim_addr2) {
|
||||
kernel_assert(kernel_tex_fetch(__prim_type, prim_addr) == type);
|
||||
kernel_assert((kernel_tex_fetch(__prim_type, prim_addr) & PRIMITIVE_ALL) == p_type);
|
||||
|
||||
bool hit;
|
||||
|
||||
@ -297,6 +297,7 @@ ccl_device bool BVH_FUNCTION_FULL_NAME(QBVH)(KernelGlobals *kg,
|
||||
#if BVH_FEATURE(BVH_HAIR)
|
||||
case PRIMITIVE_CURVE:
|
||||
case PRIMITIVE_MOTION_CURVE: {
|
||||
const uint curve_type = kernel_tex_fetch(__prim_type, prim_addr);
|
||||
if(kernel_data.curve.curveflags & CURVE_KN_INTERPOLATE) {
|
||||
hit = bvh_cardinal_curve_intersect(kg,
|
||||
isect_array,
|
||||
@ -306,7 +307,7 @@ ccl_device bool BVH_FUNCTION_FULL_NAME(QBVH)(KernelGlobals *kg,
|
||||
object,
|
||||
prim_addr,
|
||||
ray->time,
|
||||
type,
|
||||
curve_type,
|
||||
NULL,
|
||||
0, 0);
|
||||
}
|
||||
@ -319,7 +320,7 @@ ccl_device bool BVH_FUNCTION_FULL_NAME(QBVH)(KernelGlobals *kg,
|
||||
object,
|
||||
prim_addr,
|
||||
ray->time,
|
||||
type,
|
||||
curve_type,
|
||||
NULL,
|
||||
0, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user