diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-03 19:36:02 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-03 19:36:02 +0400 |
commit | 9db3f2368cb933002a48291c69170922eeb0256d (patch) | |
tree | a7819cc85455bc9bac511e368c42f5ba2406e9f4 /intern/cycles/render/attribute.cpp | |
parent | a434ab54c668f25045fe49098b3e4b5cf4b7e6ab (diff) |
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.
Diffstat (limited to 'intern/cycles/render/attribute.cpp')
-rw-r--r-- | intern/cycles/render/attribute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/attribute.cpp b/intern/cycles/render/attribute.cpp index 4bcaef0fb17..c7a9ab3e51a 100644 --- a/intern/cycles/render/attribute.cpp +++ b/intern/cycles/render/attribute.cpp @@ -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) |