mdx-m3-viewer
Version:
A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.
15 lines (12 loc) • 321 B
text/typescript
import { BlpImage } from '../../../parsers/blp/image';
import isBlp from '../../../parsers/blp/isformat';
import Texture from './texture';
export default {
isValidSource(object: any) {
if (object instanceof BlpImage) {
return true;
}
return isBlp(object);
},
resource: Texture,
};