Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ public void Generate(IServiceRegistry services, Model model)
for (var index = 0; index < data.Vertices.Length; index++)
{
data.Vertices[index].Position *= Scale;
Vector3.TransformCoordinate(ref data.Vertices[index].Normal, ref inverseMatrix, out data.Vertices[index].Normal);
Vector3.TransformNormal(ref data.Vertices[index].Normal, ref inverseMatrix, out data.Vertices[index].Normal);
data.Vertices[index].Normal.Normalize();
}
}

Expand Down
Loading