We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 262890b commit 426c4e1Copy full SHA for 426c4e1
LSLib/Granny/Model/Vertex.cs
@@ -392,9 +392,9 @@ public void FinalizeInfluences()
392
public void Transform(Matrix4 transformation, Matrix4 inverse)
393
{
394
Position = Vector3.TransformPosition(Position, transformation);
395
- Normal = Vector3.TransformNormalInverse(Normal, inverse);
396
- Tangent = Vector3.TransformNormalInverse(Tangent, inverse);
397
- Binormal = Vector3.TransformNormalInverse(Binormal, inverse);
+ Normal = Vector3.Normalize(Vector3.TransformNormalInverse(Normal, inverse));
+ Tangent = Vector3.Normalize(Vector3.TransformNormalInverse(Tangent, inverse));
+ Binormal = Vector3.Normalize(Vector3.TransformNormalInverse(Binormal, inverse));
398
}
399
400
public void Serialize(WritableSection section)
0 commit comments