ThreePipe
    Preparing search index...

    Class GLTFMeshOptDecodePlugin

    Loads the MeshOpt Decoder module from meshoptimizer library at runtime from a customisable cdn url. The loaded module is set in window.MeshoptDecoder and then used by GLTFLoader2 to decode files using EXT_meshopt_compression extension

    The plugin name includes GLTF, but its not really GLTF specific, it can be used to decode any meshopt compressed files.

    Hierarchy

    Implements

    Index

    Constructors

    Properties

    _initializing?: Promise<void> = undefined
    _script?: HTMLScriptElement
    constructor: typeof GLTFMeshOptDecodePlugin

    The initial value of Object.prototype.constructor is the standard built-in Object constructor.

    enabled: boolean = true
    rootNode: HTMLHeadElement = document.head
    toJSON: any = undefined
    DECODER_URL: string = 'https://unpkg.com/[email protected]/meshopt_decoder.module.js'

    Path to the meshopt decoder library, default uses unpkg cdn

    PluginType: "GLTFMeshOptDecodePlugin" = 'GLTFMeshOptDecodePlugin'

    Accessors

    Methods