// 添加贴图
let texture = new THREE.TextureLoader().load(
require('../../../public/static/img/tietu.jpg')
);
texture.wrapS = THREE.RepeatWrapping;
texture.wrapT = THREE.RepeatWrapping;
// 添加正方体模型
// 创建一个正方体模型
let geometry = new THREE.BoxGeometry(1, 1, 1);
// 添加正方体材质
let material = new THREE.MeshBasicMaterial({
// 加载法向贴图
map: texture,
});
版权属于:小小窝/禾下月
本文链接:https://hxyxyz.top/index.php/%E6%8A%80%E6%9C%AF/327.html
本站文章采用 知识共享署名4.0 国际许可协议 进行许可,请在转载时注明出处及本声明!