Closed bobbens closed 1 month ago
Oops, it's EXT_texture_webp, not KHR_texture_webp.
This needs to be structured like KHR_texture_basisu; the current implementation for example doesn’t support specifying both png and webp images. Also missing cgltf_write support.
This needs to be structured like KHR_texture_basisu; the current implementation for example doesn’t support specifying both png and webp images. Also missing cgltf_write support.
How does it look now?
I added a call to CGLTF_PTRFIXUP in cgltf_fixup_pointers. Hopefully should be fine now.
And one more thing :sweat_smile: I think this is missing writing the appropriate extension name in cgltf_write_extensions
, so a written file with webp extension will be considered invalid by glTF spec (although this would not necessarily interfere with loading it).
Lots of things I missed when grepping. Completed now perhaps.
Specification: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor/EXT_texture_webp