khronos-texture-container

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i khronos-texture-container

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

28.4 kB

Total Files

9

Last publish

Collaborators

  • williammanco