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

Constructors

Properties

_initializing?: Promise<void> = undefined
_script?: HTMLScriptElement
constructor: typeof GLTFMeshOptDecodePlugin
enabled: boolean = true
rootNode: HTMLHeadElement = document.head
toJSON: any = undefined
DECODER_URL: string = 'https://unpkg.com/[email protected]/meshopt_decoder.module.js'
PluginType: "GLTFMeshOptDecodePlugin" = 'GLTFMeshOptDecodePlugin'

Accessors

Methods

Generated using TypeDoc