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

glTF KHR_texture_basisu extension feasibility #1309

Open
andreasplesch opened this issue Oct 10, 2023 · 2 comments
Open

glTF KHR_texture_basisu extension feasibility #1309

andreasplesch opened this issue Oct 10, 2023 · 2 comments

Comments

@andreasplesch
Copy link
Contributor Author

@andreasplesch
Copy link
Contributor Author

The ktx2 basis formats are:

  • ETC1S with BasisLZ (used for color-perceptual content)
  • UASTC with optional Zstandard compression (used for data content)

They need to a transcoded to GPU supported format:

            s3tc: !!gl.getExtension('WEBGL_compressed_texture_s3tc'),
            etc1: !!gl.getExtension('WEBGL_compressed_texture_etc1'),
            etc2: !!gl.getExtension('WEBGL_compressed_texture_etc'),
            pvrtc: !!gl.getExtension('WEBGL_compressed_texture_pvrtc'),
            astc: !!gl.getExtension('WEBGL_compressed_texture_astc'),
            bptc: !!gl.getExtension('EXT_texture_compression_bptc')

https://caniuse.com/mdn-api_webgl_compressed_texture_s3tc
https://caniuse.com/mdn-api_webgl_compressed_texture_etc1
https://caniuse.com/mdn-api_webgl_compressed_texture_etc
https://caniuse.com/mdn-api_webgl_compressed_texture_pvrtc
https://caniuse.com/mdn-api_webgl_compressed_texture_astc
https://caniuse.com/?search=bptc

Filtering for IOS, Android and Firefox leaves only:
astc !

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

No branches or pull requests

1 participant