set setMeshoptDecoder when using gltfloader?
IDONKN opened this issue · comments
IDONKN commented
import { MeshoptDecoder } from './meshopt_decoder.module.js';
...
var loader = new GLTFLoader();
loader.setMeshoptDecoder(MeshoptDecoder);
loader.load('pirate.glb', function (gltf) { scene.add(gltf.scene); });
Ib Green commented
There are no such functions (loader.load()
, loader.setMeshoptDecoder()
in loaders.gl. It looks like you are using THREE.js and perhaps you want to ask there?
Meshopt should be supported out of the box.
import (load} from '@loaders.gl/core';
import {GLTFLoader} from '@loaders.gl/gltf';
const gltf = load(url, GLTFLoader);
IDONKN commented
Got it, thank you for your help~