BCH/BCRES : Skip transforming normals to prevent singular matrix bug
This commit is contained in:
parent
2088200479
commit
2b416da9df
@ -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 New Issue
Block a user