From 68a52b4f067b1b1108d8064926becee79dbf4605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20Podgor=C5=A1ek?= Date: Thu, 5 Oct 2017 03:22:01 +0200 Subject: [PATCH] mini optimizacija - ha. --- anim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anim.js b/anim.js index 52ff6ea..2d303ca 100644 --- a/anim.js +++ b/anim.js @@ -150,7 +150,7 @@ function camRotate () { */ camera.translateOnAxis(xAksa, cam_rot_offset); - camera.lookAt(new THREE.Vector3(0, 0, 0)); + camera.lookAt(scene.position); }; // Inicializiraj