diff options
Diffstat (limited to 'intern/cycles/render/attribute.cpp')
-rw-r--r-- | intern/cycles/render/attribute.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/render/attribute.cpp b/intern/cycles/render/attribute.cpp index 05c0b5693bc..4fbf831087f 100644 --- a/intern/cycles/render/attribute.cpp +++ b/intern/cycles/render/attribute.cpp @@ -301,6 +301,8 @@ const char *Attribute::standard_name(AttributeStandard std) return "tangent"; case ATTR_STD_UV_TANGENT_SIGN: return "tangent_sign"; + case ATTR_STD_VERTEX_COLOR: + return "vertex_color"; case ATTR_STD_POSITION_UNDEFORMED: return "undeformed"; case ATTR_STD_POSITION_UNDISPLACED: @@ -480,6 +482,9 @@ Attribute *AttributeSet::add(AttributeStandard std, ustring name) case ATTR_STD_UV_TANGENT_SIGN: attr = add(name, TypeDesc::TypeFloat, ATTR_ELEMENT_CORNER); break; + case ATTR_STD_VERTEX_COLOR: + attr = add(name,TypeRGBA, ATTR_ELEMENT_CORNER_BYTE); + break; case ATTR_STD_GENERATED: case ATTR_STD_POSITION_UNDEFORMED: case ATTR_STD_POSITION_UNDISPLACED: |