Update README.md

This commit is contained in:
Rich Geldreich
2021-04-13 14:58:21 -04:00
committed by GitHub
parent 3d9c73b9c9
commit 4dc53670f6

View File

@@ -118,10 +118,15 @@ To create a slightly higher quality ETC1S .basis file (one with better codebooks
`basisu -comp_level 2 x.png`
In some rare images (ones with blue sky gradients come to bind), you may need to increase the ETC1S comp_level setting. This controls the amount of overall effort the encoder uses to optimize the codebooks (palettes) and compressed data stream. Higher comp_level's are significantly slower, and shouldn't be used unless necessary:
On some rare images (ones with blue sky gradients come to bind), you may need to increase the ETC1S `-comp_level` setting. This controls the amount of overall effort the encoder uses to optimize the ETC1S codebooks (palettes) and compressed data stream. Higher comp_level's are *significantly* slower, and shouldn't be used unless necessary:
`basisu -ktx2 x.png -comp_level 5 -q 255`
Or try:
`basisu -ktx2 x.png -comp_level 5 -max_endpoints 16128 -max_selectors 16128`
Note `-comp_level`'s 3-4 are almost as good as 5 and are a lot faster.
### Unpacking .basis/.KTX2 files to .PNG/.KTX files
You can either use the command line tool or [call the transcoder directly](https://github.com/BinomialLLC/basis_universal/wiki/How-to-Use-and-Configure-the-Transcoder) from JavaScript or C/C++ code to decompress .basis/.KTX2 files to GPU texture data or uncompressed images.