I imported glb texture but not render as it should in picture like glasses it renders black
and also it cuts when moving camera
my render:
the way it should be:
fbxLoader.load("/dash2finalFixed2.glb", (obj) => {
scene.add(obj.scene);
},(xhr) => {
console.log((xhr.loaded / xhr.total) * 100 + '% loaded')
});
const floor = new THREE.Mesh(
new THREE.PlaneGeometry(10, 10),
new THREE.MeshStandardMaterial({
transparent: true,
opacity: 0,
})
);
floor.receiveShadow = true;
floor.rotation.x = -Math.PI * 0.5;
scene.add(floor);
const ambientLight = new THREE.AmbientLight(0x404040 , 0.8);
ambientLight.position.set(5, 15, 5);
gui.add(ambientLight.position, "x", 0, 5,0.001);
gui.add(ambientLight.position, "y", 0, 5,0.001);
gui.add(ambientLight.position, "z", 0, 5,0.001);
scene.add(ambientLight);