hello there, I have a question about GLTF loader.
But gltf material looks different from the original material of the model.
Please tell me how to make it correct.
Here’s what it looks like in viewer
and here is what I got in 3JS
here is my code, it doesn’t seem to have any problems.
gltfLoader.load('/static/test.glb', function (gltf) {
gltf.scene.position.set(0,0,0);
gltf.scene.traverse((child) => function () {
if(child.isMesh) {
child.geometry.computeVertexNormals();
child.material = new THREE.MeshPhysicalMaterial({
clearcoat: 1,
clearcoatRoughness: 0.1,
transmission: 1,
});
}
})
scene.add(gltf.scene);
})
Here is the GLTF file which I am using
0918.glb (113.5 KB)