Fix T94651: Cycles error with pointcloud vector attribute
This commit is contained in:
parent
4c617c06e9
commit
0928fe8710
Notes:
blender-bot
2023-02-14 02:43:21 +01:00
Referenced by issue #94651, Using a vector attribute in a pointcloud material shader results in CUDA error
|
@ -81,7 +81,7 @@ ccl_device float3 point_attribute_float3(KernelGlobals kg,
|
|||
# endif
|
||||
|
||||
if (desc.element == ATTR_ELEMENT_VERTEX) {
|
||||
return float4_to_float3(kernel_tex_fetch(__attributes_float4, desc.offset + sd->prim));
|
||||
return kernel_tex_fetch(__attributes_float3, desc.offset + sd->prim);
|
||||
}
|
||||
else {
|
||||
return make_float3(0.0f, 0.0f, 0.0f);
|
||||
|
|
Loading…
Reference in New Issue