feat: Add WebP texture support as an Addon - #58
Closed
mostafa1310 wants to merge 39 commits into
Closed
Conversation
…eases. KtxUnity soft dependency has been changed back to OpenUPM version (for now)
Release 5.2.0
Release 6.0.0
- Re-named *Unity glTFast* to *glTFast* in prominent places - Re-added OpenUPM badge - Added recommendation for *Unity glTFast* and link
Release 6.1.0
Release 6.2.0
Release 6.5.0
Release 6.6.0
- Synchronized Unity glTFast 6.9.0 subfolder `Packages/com.unity.cloud.gltfast` from monorepo. - Ported over missing switch to *KTX for Unity* - Added docs about OpenUPM branch not being a monorepo.
- Automatically close PRs with references to Untity's fork.
mostafa1310
force-pushed
the
feature/webp-support
branch
2 times, most recently
from
August 11, 2026 09:25
26e0334 to
61d3879
Compare
Adds EXT_texture_webp to the glTF schema parser to enable WebP texture detection. Moves the WebP loading implementation (WebpImageLoader.cs and WebpTextureImportAddon.cs) out of the core package and into DocExamples/ to demonstrate how to implement a native addon without coupling the core package to unity.webp. Also updates DocExamples/LoadGltfWithWebp.cs to show how to manually register the addon before loading.
mostafa1310
force-pushed
the
feature/webp-support
branch
from
August 11, 2026 18:32
16ff48c to
af2848c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for WebP textures using the EXT_texture_webp extension.
Based on previous feedback, this implementation ensures a clean separation between the add-on logic and the core glTFast logic by completely inverting the dependency chain:
Note: The EXT_texture_webp property is added to TextureExtensions in Texture.cs to prevent Unity's JsonUtility from silently discarding the image index during initial schema deserialization.