diff --git a/README.md b/README.md index f4a0183..71bb19b 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,9 @@ The "WebGL" directory contains two very simple WebGL demos that use the transcod See more details [here](webgl/README.md). +![](texture-demo.png) +![](model-demo.png) + ### Transcoder details The transcoder unpacks .basis files to various GPU texture formats, almost always without needing to decompress entire images at the pixel level (i.e. it only deals with arrays of blocks). The one exception is PVRTC1, where the transcoder needs to recompute the per-pixel selector ("modulation") values, but it does so using simple scalar operations. diff --git a/webgl/README.md b/webgl/README.md index e6ef087..39444b6 100644 --- a/webgl/README.md +++ b/webgl/README.md @@ -8,6 +8,8 @@ On browsers that don't support BC1 (Firefox is one), there's a low-quality fallback code path for opaque textures (but no fallback for BC3 yet). Note that the fallback path only converts to 16-bit RGB images at the moment, so the quality isn't as good as it should be. +![](texture-demo.png) + ### glTF 3D Model Demo `gltf-demo/index.html` renders a glTF 3D model with `.basis` texture files, transcoded into one of the following compressed texture formats: * DTX (BC1) @@ -20,6 +22,8 @@ On browsers that don't support BC1 (Firefox is one), there's a low-quality fallb The glTF model in this demo uses a hypothetical `GOOGLE_texture_basis` extension. That extension is defined for the sake of example only – the glTF format will officially embed Basis files within a KTX2 wrapper, through a new extension that is currently in development. +![](model-demo.png) + Both demos requires WebAssembly and WebGL support. ## Testing locally diff --git a/webgl/model-demo.png b/webgl/model-demo.png new file mode 100644 index 0000000..98ed813 Binary files /dev/null and b/webgl/model-demo.png differ diff --git a/webgl/texture-demo.png b/webgl/texture-demo.png new file mode 100644 index 0000000..5718f41 Binary files /dev/null and b/webgl/texture-demo.png differ