Fix T92128: Cycles CUDA wrong hair attributes, after recent changes
This commit is contained in:
parent
f834939ceb
commit
53f25df5bc
Notes:
blender-bot
2023-02-14 01:57:12 +01:00
Referenced by issue #92128, Cuda failing to respect texture coordinate for image vector in principle Hair BSDF
|
@ -171,7 +171,9 @@ ccl_device_inline
|
|||
}
|
||||
}
|
||||
|
||||
const int curve_object = kernel_tex_fetch(__prim_object, prim_addr);
|
||||
const int curve_object = (object == OBJECT_NONE) ?
|
||||
kernel_tex_fetch(__prim_object, prim_addr) :
|
||||
object;
|
||||
const int curve_type = kernel_tex_fetch(__prim_type, prim_addr);
|
||||
const int curve_prim = kernel_tex_fetch(__prim_index, prim_addr);
|
||||
hit = curve_intersect(
|
||||
|
|
|
@ -172,7 +172,9 @@ ccl_device_noinline bool BVH_FUNCTION_FULL_NAME(BVH)(ccl_global const KernelGlob
|
|||
}
|
||||
}
|
||||
|
||||
const int curve_object = kernel_tex_fetch(__prim_object, prim_addr);
|
||||
const int curve_object = (object == OBJECT_NONE) ?
|
||||
kernel_tex_fetch(__prim_object, prim_addr) :
|
||||
object;
|
||||
const int curve_prim = kernel_tex_fetch(__prim_index, prim_addr);
|
||||
const int curve_type = kernel_tex_fetch(__prim_type, prim_addr);
|
||||
const bool hit = curve_intersect(
|
||||
|
|
Loading…
Reference in New Issue