Cycles: use mikktspace now for computing tangents from UV maps. This avoids ugly

averaged tangents at UV seams but instead now the seams will show as discontinuities
in the tangent.
This commit is contained in:
2012-11-03 15:36:02 +00:00
parent a434ab54c6
commit 9db3f2368c
7 changed files with 135 additions and 99 deletions

View File

@@ -163,7 +163,7 @@ Attribute *AttributeSet::add(AttributeStandard std, ustring name)
else if(std == ATTR_STD_UV)
attr = add(name, TypeDesc::TypePoint, Attribute::CORNER);
else if(std == ATTR_STD_TANGENT)
attr = add(name, TypeDesc::TypeVector, Attribute::VERTEX);
attr = add(name, TypeDesc::TypeVector, Attribute::CORNER);
else if(std == ATTR_STD_GENERATED)
attr = add(name, TypeDesc::TypePoint, Attribute::VERTEX);
else if(std == ATTR_STD_POSITION_UNDEFORMED)