赞
踩
解决方式:将gltf 文件放在public文件夹下
- const loader = new GLTFLoader();
- let that =this;
- loader.load('/models/gltf/scene.gltf', gltf => {
- console.log('geggegeg',gltf);
- var model = gltf.scene;
- that.scene.add(model);
- })
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。