Cycles code refactor: add motion sampled normals attribute.
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user