Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/shapecraft. flo-bit.dev/shapecraft
Something went wrong. Try again.
703 B · 28 lines
JavaScript
at commit da69385e
1234567891011121314151617181920212223242526272829import { Texture } from './Texture.js';
class CompressedTexture extends Texture {
constructor( mipmaps, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy, colorSpace ) {
super( null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, colorSpace );
this.isCompressedTexture = true;
this.image = { width: width, height: height }; this.mipmaps = mipmaps;
// no flipping for cube textures // (also flipping doesn't work for compressed textures )
this.flipY = false;
// can't generate mipmaps for compressed textures // mips must be embedded in DDS files
this.generateMipmaps = false;
}
}
export { CompressedTexture };