//设置场景颜色
onSetSceneColor(color) {
this.scene.background = new THREE.Color(color)
}
//设置场景图片
onSetSceneImage(url) {
this.scene.background = new THREE.TextureLoader().load(url);
}
// 设置全景图
onSetSceneViewImage(url) {
const texture = new THREE.TextureLoader().load(url);
texture.mapping = THREE.EquirectangularReflectionMapping
this.scene.background = texture
this.scene.environment = texture
}