three.js常见知识点
添加三维坐标const axesHelper = new THREE.AxesHelper(5) axesHelper.position.y = 1 scene.add(axesHelper) 修改背景颜色scene.background = new THREE.Color("#9aa7b1") 雾// 第一个参数是雾的颜色,第二个是雾的最小距离,第三个是雾的最大距离...
添加三维坐标const axesHelper = new THREE.AxesHelper(5) axesHelper.position.y = 1 scene.add(axesHelper) 修改背景颜色scene.background = new THREE.Color("#9aa7b1") 雾// 第一个参数是雾的颜色,第二个是雾的最小距离,第三个是雾的最大距离...
效果图 代码import * as THREE from 'three'; const width = document.documentElement.clientWidth const height = document.documentElement.clientHeight // 创建3d场景 const scene = new THREE.Scene() ...