0.1.0 • Published 5 years ago

khronos-texture-container v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago