kcoley / gltf2usd

command-line utility for converting glTF 2.0 models to USD
MIT License
263 stars 39 forks source link

Img mode fix #187

Closed danlee-lils closed 3 years ago

danlee-lils commented 3 years ago

The image mode for grayscale was not covered in the final texture output method. It covers the palletized image but not grayscale. Grayscale would split into 2 channels hence creating out of index error when trying to merge the channels into one texture for output.

Oh, one more thing, the default mode for grayscale is L... but I saw LA which was weird... lol