d4rkc0d3r / d4rkAvatarOptimizer

d4rkpl4y3r's VRChat Avatar 3.0 optimizer
MIT License
368 stars 16 forks source link

fixed sps breaking when run through the optimizer #89

Closed CoriullusFox closed 5 months ago

CoriullusFox commented 5 months ago

added penetrator detection for sps and skipped Mesh.Optimize() on sps meshes

sps apparently doesn't like Mesh.Optimize() turns it into spaghetti...

d4rkc0d3r commented 5 months ago

woah I am surprised that alone fixes it for you. CombineAndOptimizeMaterials() has no regard for original vertex order and only keeps the original vertex ids intact if the vertices are exactly in the order they get referenced first by the index buffer.