normalize tangents

This commit is contained in:
ousttrue
2018-04-05 15:25:25 +09:00
parent d8c07442a6
commit 690556e074

View File

@@ -180,7 +180,7 @@ namespace VRM
srcMesh.GetBlendShapeFrameWeight(i, 0),
vertices.Select(x => blendShapeMatrix.MultiplyPoint(x) * s).ToArray(),
normals.Select(x => blendShapeMatrix.MultiplyVector(x).normalized).ToArray(),
tangents
tangents.Select(x => blendShapeMatrix.MultiplyVector(x).normalized).ToArray()
);
}
catch (Exception)