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);