Fixed keyframe normal/tangent interpolation

Former-commit-id: d4ee3e508945ff3ca85e435a24e520ccce1ebeb3
This commit is contained in:
Lynix
2013-01-03 12:31:01 +01:00
parent 844ab809d3
commit c10a4eb94c

View File

@@ -560,6 +560,9 @@ void NzKeyframeMesh::InterpolateImpl(unsigned int frameA, unsigned int frameB, f
vertex->tangent = NzVector3f::Lerp(m_impl->positions[frameA+i], m_impl->positions[frameB+i], interpolation);
vertex->uv = m_impl->uv[i];
vertex->normal.Normalize();
vertex->tangent.Normalize();
vertex++;
}