vue项目中安装使用three.js

1, 安装插件    npm install three --save

2, 在main.js中设置一下,将three.js挂载到vue上: 

import * as Three from "three";

Vue.prototype.$THREE = Three;

你可能感兴趣的:(three.js)