new OBJLoader().load('dt.obj', function (object) {
function getChildrenObj(object, resultMap) {
object.traverse((v) => {
if (v.isMesh && v.material) {
v.castShadow = true;
v.frustumCulled = false;
const { name, color, map } = v.material;
v.material = new THREE.MeshStandardMaterial({
map,
transparent: true,
color,
name
});
resultMap[v.name] = v;
}
});
}
});