Uizi popravek - kamera fejl
parent
aaa7c59957
commit
836228b612
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue