jkuhlmann / cgltf

:diamond_shape_with_a_dot_inside: Single-file glTF 2.0 loader and writer written in C99
MIT License
1.47k stars 136 forks source link

Add support for MSFT_texture_dds extension #203

Open Keenuts opened 1 year ago

Keenuts commented 1 year ago

Hi!

GLTF supports JPG and PNG files. Both those files don't support compression nor mipmaps. DDS is a well-supported file format, which provides both. An extension to GLTF is available (draft still 😥)(https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/MSFT_texture_dds/schema/glTF.MSFT_texture_dds.schema.json), so might be useful in the future if cgltf supports it.

Keenuts commented 1 year ago

Sent a PR to have an example model to test with: https://github.com/KhronosGroup/glTF-Sample-Models/pull/378