Skip to content

Commit 166deb2

Browse files
Made first example.
1 parent 14dbe68 commit 166deb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapter-01/01-pratice.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
function init() {
2929
// here we'll put the Three.js stuff
3030
const scene = new THREE.Scene();
31-
const camera = new THREE.PerspectiveCamera(45, window.innerWidth/window.innerHeight, 0.1, 1000);
31+
const camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 1000);
3232

3333
const renderer = new THREE.WebGLRenderer();
3434
renderer.setClearColorHex(0xeeeeee);
@@ -67,7 +67,7 @@
6767
sphere.position.y = 4;
6868
sphere.position.z = 2;
6969
scene.add(sphere);
70-
70+
7171

7272
camera.position.x = -30;
7373
camera.position.y = 40;

0 commit comments

Comments
 (0)