import { DdsImage } from '../../../parsers/dds/image' ; import isDds from '../../../parsers/dds/isformat' ; import ModelViewer from '../../viewer' ; import Texture from './texture' ; export default { load ( viewer ) { const webgl = viewer . webgl ; if ( ! webgl . ensureExtension ( 'WEBGL_compressed_texture_s3tc' ) ) { console . warn ( 'DDS: No compressed textures support! This might reduce performance.' ) ; } } , isValidSource ( object ) { if ( object instanceof DdsImage ) { return true ; } return isDds ( object ) ; } , resource : Texture , } ;