Fixed keyframe normal/tangent interpolation
Former-commit-id: d4ee3e508945ff3ca85e435a24e520ccce1ebeb3
This commit is contained in:
parent
844ab809d3
commit
c10a4eb94c
|
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue