diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-03-29 16:03:46 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-03-29 16:03:46 +0400 |
commit | 8f33538fabe9b2485478b7ce0167c15396bdb355 (patch) | |
tree | 2ad971354ba58047cfbab6d9c23749a475d42df1 /intern/cycles/render/attribute.cpp | |
parent | 99f59930885ed69890967f8864a3aa0626249d86 (diff) |
Cycles code refactor: add motion sampled normals attribute.
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 e730cab0c60..f524a9fa3bc 100644 --- a/intern/cycles/render/attribute.cpp +++ b/intern/cycles/render/attribute.cpp @@ -165,6 +165,8 @@ const char *Attribute::standard_name(AttributeStandard std) return "undisplaced"; else if(std == ATTR_STD_MOTION_VERTEX_POSITION) return "motion_P"; + else if(std == ATTR_STD_MOTION_VERTEX_NORMAL) + return "motion_N"; else if(std == ATTR_STD_PARTICLE) return "particle"; else if(std == ATTR_STD_CURVE_INTERCEPT) @@ -275,6 +277,9 @@ Attribute *AttributeSet::add(AttributeStandard std, ustring name) case ATTR_STD_MOTION_VERTEX_POSITION: attr = add(name, TypeDesc::TypePoint, ATTR_ELEMENT_VERTEX_MOTION); break; + case ATTR_STD_MOTION_VERTEX_NORMAL: + attr = add(name, TypeDesc::TypeNormal, ATTR_ELEMENT_VERTEX_MOTION); + break; case ATTR_STD_PTEX_FACE_ID: attr = add(name, TypeDesc::TypeFloat, ATTR_ELEMENT_FACE); break; |