threepipe
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

GLTFMeshOptDecodePlugin.md 1.1KB


prev:

text: 'KTXLoadPlugin'
link: './KTXLoadPlugin'

next:

text: 'SimplifyModifierPlugin'
link: './SimplifyModifierPlugin'

GLTFMeshOptDecodePlugin

ExampleSource CodeAPI Reference

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

import {GLTFMeshOptDecodePlugin} from 'threepipe'
const plugin = viewer.addPluginSync(new GLTFMeshOptDecodePlugin())
// await plugin.initialize() // optional, this happens when loading a gltf file with extension anyway

const texture = await viewer.load('file.glb')