1
0
mirror of synced 2024-12-01 02:27:22 +01:00

BCH/BCRES : Skip transforming normals to prevent singular matrix bug

This commit is contained in:
KillzXGaming 2020-04-11 11:19:02 -04:00
parent 2088200479
commit 2b416da9df
2 changed files with 1 additions and 2 deletions

View File

@ -50,7 +50,6 @@ namespace FirstPlugin.CtrLibrary
}
}
bool DrawablesLoaded = false;
public override void OnClick(TreeView treeView)
{

View File

@ -98,7 +98,7 @@ namespace FirstPlugin.CtrLibrary
{
int index = boneIndices[vertices[v].Indices.b0];
vertex.pos = Vector3.TransformPosition(vertex.pos, parentModel.Skeleton.Renderable.bones[index].Transform);
vertex.nrm = Vector3.TransformNormal(vertex.nrm, parentModel.Skeleton.Renderable.bones[index].Transform);
// vertex.nrm = Vector3.TransformNormal(vertex.nrm, parentModel.Skeleton.Renderable.bones[index].Transform);
}
/* vertex.boneWeights.Add(vertices[v].Weights.w0);