Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gltfpack: Add support for EXT_texture_webp #709

Merged
merged 5 commits into from
Jun 24, 2024
Merged

gltfpack: Add support for EXT_texture_webp #709

merged 5 commits into from
Jun 24, 2024

Conversation

zeux
Copy link
Owner

@zeux zeux commented Jun 22, 2024

Similarly to KHR_texture_basisu appearing in the input, we now preserve
WebP images along with the extension if they are present in the input
file. There is no support for encoding them if the input file uses PNG/JPEG
(nor will there be).

Relies on jkuhlmann/cgltf#253 for parsing.

Fixes #536.

zeux added 5 commits June 22, 2024 09:28
This is currently pending a merge to upstream:
jkuhlmann/cgltf#253
Similarly to KHR_texture_basisu appearing in the input, we now preserve
webp images along with the extension if they are present in the input
file.
We only need an implementation for hasTransparency as getDimensions is
only needed by texture compression pipeline which doesn't support
anything but PNG/JPEG as an input.
The implementations have been written based on Wikipedia for PNG/JPEG,
official Khronos specification for KTX2 and Google's specification for WebP.
We don't support encoding webp images but we will now preserve them if
they occur in the input.
@zeux zeux merged commit fbc9f54 into master Jun 24, 2024
12 checks passed
@zeux zeux deleted the gltf-webp branch June 24, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gltfpack: EXT_texture_webp support
1 participant