mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
BCH/BCRES : Skip transforming normals to prevent singular matrix bug
This commit is contained in:
parent
2088200479
commit
2b416da9df
2 changed files with 1 additions and 2 deletions
|
@ -50,7 +50,6 @@ namespace FirstPlugin.CtrLibrary
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
bool DrawablesLoaded = false;
|
||||
public override void OnClick(TreeView treeView)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue