fov
This commit is contained in:
parent
ebe7c41578
commit
eb36acac39
7
main.js
7
main.js
@ -93,7 +93,7 @@ scene.environment = scene.background;
|
|||||||
|
|
||||||
window.scene = scene;
|
window.scene = scene;
|
||||||
|
|
||||||
const camera = new THREE.PerspectiveCamera(70, window.innerWidth / window.innerHeight, 0.1, 1000);
|
const camera = new THREE.PerspectiveCamera(80, window.innerWidth / window.innerHeight, 0.1, 1000);
|
||||||
camera.rotation.order = 'YXZ';
|
camera.rotation.order = 'YXZ';
|
||||||
camera.position.set(0, 25 + playerHeight, 0);
|
camera.position.set(0, 25 + playerHeight, 0);
|
||||||
|
|
||||||
@ -346,6 +346,11 @@ if (dev) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const cameraFolder = gui.addFolder("camera")
|
||||||
|
cameraFolder.add(camera, "focus", 0, 200).onChange(() => camera.updateProjectionMatrix())
|
||||||
|
cameraFolder.add(camera, "fov", 0, 200).onChange(() => camera.updateProjectionMatrix())
|
||||||
|
cameraFolder.add(camera, "filmGauge", 0, 200).onChange(() => camera.updateProjectionMatrix())
|
||||||
|
|
||||||
const raftFolder = gui.addFolder("Raft")
|
const raftFolder = gui.addFolder("Raft")
|
||||||
const raftPositionFolder = raftFolder.addFolder("position")
|
const raftPositionFolder = raftFolder.addFolder("position")
|
||||||
raftPositionFolder.add(raft.position, "x")
|
raftPositionFolder.add(raft.position, "x")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user