threepipe
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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')