microsoft / glTF-Toolkit

A collection of tools for modifying and optimizing glTF assets
MIT License
295 stars 41 forks source link

Improve handling of shared materials between LODs #14

Closed erikdahlstrom closed 6 years ago

erikdahlstrom commented 6 years ago

Fixes part of issue #9 by adding a commandline flag that bypasses packing of texture resources for the lower LOD levels, and that makes the lower LODs use the materials from LOD0.

The assumption is that LOD0 has all the materials used for all the LODs, and the lower quality LODs may use a subset of the materials from LOD0. It also assumes that the same texture packing scheme is used for all LODs.