Hello.
I have a drc file and a texture file(jpg).
I want to load the drc model and apply the texture to it.
Loading the drc model succeeded. But applying the texture failed.
my code:
const loader = new DRACOLoader();
loader.setDecoderPath(path);
loader.load(url, (geometry) => {
const textureLoader = new THREE.TextureLoader();
const material = new THREE.MeshStandardMaterial({ map: textureLoader.load(textureUrl) });
const mesh = new THREE.Mesh(geometry, material);
scene.add(mesh);
},