Initial commit
This commit is contained in:
12
js/camera.js
Normal file
12
js/camera.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as THREE from 'three';
|
||||
|
||||
export const camera = new THREE.PerspectiveCamera(
|
||||
30,
|
||||
window.innerWidth / window.innerHeight,
|
||||
0.1,
|
||||
1000
|
||||
);
|
||||
|
||||
// Камера смотрит в комнату через открытую стену
|
||||
camera.position.set(0, 0, 18);
|
||||
camera.lookAt(0, 1, 0);
|
||||
Reference in New Issue
Block a user