Cycles: internal support for float4 geometry attributes

Previously only float3 and byte4 was supported.

Ref D2057
This commit is contained in:
Alexander Gavrilov
2020-10-26 18:23:40 +01:00
committed by Brecht Van Lommel
parent ee6b989f8e
commit d58b55b55a
8 changed files with 259 additions and 40 deletions

View File

@@ -34,7 +34,7 @@ Attribute::Attribute(
assert(type == TypeDesc::TypeFloat || type == TypeDesc::TypeColor ||
type == TypeDesc::TypePoint || type == TypeDesc::TypeVector ||
type == TypeDesc::TypeNormal || type == TypeDesc::TypeMatrix || type == TypeFloat2 ||
type == TypeRGBA);
type == TypeFloat4 || type == TypeRGBA);
if (element == ATTR_ELEMENT_VOXEL) {
buffer.resize(sizeof(ImageHandle));