khronos-texture-container
v0.1.0
Published
porting of babylon.khronosTextureContainer babylon.js and KTXLoader three.js
Downloads
2
Maintainers
Readme
khronos-texture-container
Ported from babylon.khronosTextureContainer - Babylon.js KTXLoader - Three.js
Install
yarn add khronos-texture-container
Example
import KhronosTextureContainer from 'khronos-texture-container'
const ktx = new KhronosTextureContainer( buffer, 1 );
console.log({
mipmaps: ktx.mipmaps( loadMipmaps ),
width: ktx.pixelWidth,
height: ktx.pixelHeight,
format: ktx.glInternalFormat,
isCubemap: ktx.numberOfFaces === 6,
mipmapCount: ktx.numberOfMipmapLevels
});
Build
yarn build
License
MIT