mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-13 00:17:30 +00:00
Combine KCL materials that use unique IDs per every triangle.
This commit is contained in:
parent
8328c132de
commit
bf02233106
1 changed files with 13 additions and 0 deletions
|
@ -531,6 +531,19 @@ namespace FirstPlugin
|
|||
|
||||
triangleList[prism.CollisionFlags].Add(triangle);
|
||||
}
|
||||
//Triangle indexed
|
||||
//It's not pratical to split materials up with these.
|
||||
//Materials are instead handled seperately and need to be handled in another way.
|
||||
if (triangleList.Count == model.Prisms.Length)
|
||||
{
|
||||
triangleList.Clear();
|
||||
triangleList.Add(0, new List<Triangle>());
|
||||
foreach (var prism in model.Prisms)
|
||||
{
|
||||
var triangle = model.GetTriangle(prism);
|
||||
triangleList[0].Add(triangle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Renderer.models.Clear();
|
||||
|
|
Loading…
Reference in a new issue