diff --git a/webgl/README.md b/webgl/README.md index 4ad633b..af4a5e6 100644 --- a/webgl/README.md +++ b/webgl/README.md @@ -40,6 +40,10 @@ extension that is [currently in development](https://github.com/KhronosGroup/glT ![Screenshot showing a basis texture rendered as the base color texture for a 3D model in a webpage.](gltf/preview.png) +## Compressor (encode_test) + +This demo shows how to use the compressor from JavaScript. To use it, select a .PNG file, hit the "Encode!" button. The compressor will be invoked to dynamically generate a .basis file, which will be immediately transcoded. To download the generated .basis file, select the "Download!" button. To view the compressor's textual debug output, open your browser's developer debug console and enable the Debug checkbox before hitting the "Encode!" button. + ## Testing locally See [how to run things locally](https://threejs.org/docs/#manual/en/introduction/How-to-run-things-locally), or (with [Node.js](https://nodejs.org/en/) installed), run: