reed-framework icon indicating copy to clipboard operation
reed-framework copied to clipboard

Detect duplicate materials and unused materials

Open Reedbeta opened this issue 10 years ago • 1 comments

The material compiler currently doesn't warn about duplicate names in an .mtl file, but then the dupes get dropped on the floor when they're loaded and stored in a hash table.

Also, we don't currently do anything about unused materials. There are two parts to this: 1. clean up empty material ranges in meshes; 2. clean up materials in the library that are never referenced by any material range in the mesh.

Reedbeta avatar May 01 '15 23:05 Reedbeta

Empty material ranges are now removed when compiling a mesh, as of commit f17795b.

Reedbeta avatar Oct 08 '15 20:10 Reedbeta