Update README.md

This commit is contained in:
Rich Geldreich
2020-12-17 14:43:29 -05:00
committed by GitHub
parent a21ea7f25b
commit f51ea57463

View File

@@ -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: