Uizi popravek - kamera fejl

master
Jure Podgoršek 2018-03-22 06:10:04 +01:00
parent aaa7c59957
commit 836228b612
1 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,8 @@
(def kamera (THREE.PerspectiveCamera. FOV (/ js/window.innerWidth js/innerHeight 0.1 2000)))
(aset kamera "position" "z" odmik-kamere)
(aset kamera "aspect" (/ js/window.innerWidth js/window.innerHeight))
(.updateProjectionMatrix kamera)
(def izris (THREE.WebGLRenderer. (js-obj "alpha" true)))
(.setSize izris js/window.innerWidth js/window.innerHeight)
@ -73,7 +75,6 @@
(.rotateX obj rotacija-x)
(let [new-scale (+ obj.scale.x w-diff)]
(console.log obj.scale w-diff obj.scale.x new-scale)
(aset obj "scale" "x" new-scale)
(aset obj "scale" "y" new-scale)
(aset obj "scale" "z" new-scale))