背景图调整+模型

This commit is contained in:
Hcat1314
2023-12-09 13:29:16 +08:00
parent f0b46b1c24
commit 42916453e0
2 changed files with 5 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 951 KiB

View File

@@ -41,13 +41,13 @@ export default class Demo {
this.camera = new this.THREE.PerspectiveCamera( this.camera = new this.THREE.PerspectiveCamera(
75, 75,
window.innerWidth / window.innerHeight, window.innerWidth / window.innerHeight,
0.1, 1,
1000 1000
); );
this.camera.position.z = 130; this.camera.position.z = -60;
this.camera.position.y = 35; this.camera.position.y = 20;
this.camera.position.x = 40; this.camera.position.x = -30;
this.camera.lookAt(0, 0, 1000); this.camera.lookAt(0, 0, 1000);
// 初始化渲染器 // 初始化渲染器
@@ -73,6 +73,7 @@ export default class Demo {
// 轨道控制器更新 // 轨道控制器更新
if (this.orbitControls) { if (this.orbitControls) {
this.orbitControls.update(); this.orbitControls.update();
// console.log(this.camera.position);
} }
// 摄像头移动动画 // 摄像头移动动画