- Introduced `LoadedModel` and `LoadedTexture` structs for better encapsulation of model and texture data. - Added functions to load models and textures from archives, including support for resolving textures based on materials and wear entries. - Implemented error handling for missing textures, materials, and wear entries. - Updated the rendering pipeline to support texture loading and binding, including command-line arguments for texture customization. - Enhanced the `texm` crate with new decoding capabilities for various pixel formats, including indexed textures. - Added tests for texture decoding and loading to ensure reliability and correctness. - Updated documentation to reflect changes in the material and texture resolution process.
texm
Парсер формата текстур Texm.
Покрывает:
- header (
width/height/mipCount/flags/format); - core size расчёт;
- optional
Pagechunk; - строгую валидацию layout.
Тесты:
- прогон по реальным
Texmизtestdata; - синтетические edge-cases (indexed + page, minimal rgba).