UNPKG

threepipe

Version:

A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.

14 lines (11 loc) 467 B
import {Importer} from '../../assetmanager' import {KTXLoader} from 'three/examples/jsm/loaders/KTXLoader.js' import {BaseImporterPlugin} from '../base/BaseImporterPlugin' /** * Adds support for loading `.ktx`, `image/ktx` files and data uris. * @category Plugins */ export class KTXLoadPlugin extends BaseImporterPlugin { public static readonly PluginType = 'KTXLoadPlugin' protected _importer = new Importer(KTXLoader, ['ktx'], ['image/ktx'], false) }