KTX2 with Basis WebGL tests
Example webpages to test the libktx Javascript wrappers and WASM
support for transcoding Basis Universal compressed textures. All
tests require WebAssembly and WebGL support.
- libktx and WebGL: tests the
functionality of the read-write Javascript binding for libktx,
which has been compiled to Javascript using Emscripten. Among other
things, it reads a .png file, creates a KTX2 texture, encodes it to
the universal Basis-LZ format, transcodes it and renders it using
WebGL.
- Read only libktx and WebGL: tests
the read-only JS binding to libktx and its embedded Basisu transcoder,
which are compiled to .wasm. It reads a KTX v2 file containing a Basis
Universal compressed texture and renders it using WebGL.
- transcodeImage with Pure JS KTX2 loader for three.js:
transcodeImage is a BasisU transcoder method independent of .basis or any container
format written in C++ and compiled to .wasm.