Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/shapecraft. flo-bit.dev/shapecraft
Something went wrong. Try again.
603 B · 32 lines
JavaScript
at commit da69385e
123456789101112131415161718192021222324252627282930313233import { ClampToEdgeWrapping } from '../constants.js';import { CompressedTexture } from './CompressedTexture.js';
class CompressedArrayTexture extends CompressedTexture {
constructor( mipmaps, width, height, depth, format, type ) {
super( mipmaps, width, height, format, type );
this.isCompressedArrayTexture = true; this.image.depth = depth; this.wrapR = ClampToEdgeWrapping;
this.layerUpdates = new Set();
}
addLayerUpdate( layerIndex ) {
this.layerUpdates.add( layerIndex );
}
clearLayerUpdates() {
this.layerUpdates.clear();
}
}
export { CompressedArrayTexture };