mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-08-21 10:38:12 +00:00
/encoder_lvl_vs_perf.png -- 7.22kb -> 6.18kb (14.4%) /webgl/texture/preview.png -- 432.41kb -> 317.87kb (26.488%) /contrib/single_file_transcoder/examples/testcard.png -- 10.55kb -> 7.90kb (25.1%) /contrib/single_file_transcoder/examples/testcard-rgba.png -- 14.3kb -> 11.52kb (19.44%) /webgl/gltf/preview.png -- 490.65kb -> 458kb (6.652%) /contrib/previewers/win/preview.png -- 652.43kb -> 624.31 (4.31%) Total: 1,609.39kb -> 1425.78kb (11.4%)
Single File Basis Universal Examples
The examples #include the generated basisu_transcoder.cpp directly but work equally as well when including basisu_transcoder.h and compiling the amalgamated source separately.
emscripten.cpp is a bare-bones Emscripten compiled WebGL demo picking the best transcoder format for the sample texture (see the original PNG image).
The example files in this directory are released under a Creative Commons Zero license.