Engine API Reference - v2.25.0-beta.13
    Preparing search index...

    Variable featureTextureBasisConst

    featureTextureBasis: Feature = ...

    Basis textures: the loading of texture assets from Basis Universal files, in both the .basis and the KTX2 container, including the Basis variants of texture assets and the KTX2 textures of glTF files using KHR_texture_basisu. The textures are transcoded by the Basis transcoder, which basisInitialize configures. Add it to AppOptions#features to load Basis and KTX2 files. It brings featureTextureAssets, which loads the texture assets.

    basisInitialize({
    glueUrl: 'basis.wasm.js',
    wasmUrl: 'basis.wasm.wasm',
    fallbackUrl: 'basis.js'
    });

    const options = new AppOptions();
    options.features = [featureTextureBasis];