ThreeJS-学习基础(一)

下载组件threejs

npm install three -S

 引入threejs

import * as THREE from "three";

代码

 

效果:

ThreeJS-学习基础(一)_第1张图片

你可能感兴趣的:(前端,js)