Overview of KHR_texture_basisu (KTX2 / Basis-Universal) support
developThe worldwind-formats-gltf-ktx2 module provides the KHR_texture_basisu (KTX2 / Basis-Universal) texture decoder for the WorldWind glTF and 3D Tiles pipeline. It supports multiple platforms:
- JVM: Uses native
libktxvia JNI. - Android: Uses native
libktxvia JNI throughassets/. - iOS: Uses Kotlin/Native cinterop (requires opt-in build flag).
- Web (Kotlin/JS/Wasm): Uses THREE.js's bundled
basis_transcoderWASM via npm.
Bundle Size Note (Web): Even though the three package is a dependency, Webpack tree-shakes it. Only basis_transcoder.js and basis_transcoder.wasm (~250 KiB total) are included in the bundle; the full THREE.js rendering engine is not included.