Selaa lähdekoodia

* WebGLRenderer: update camera and object matrices if autoUpdateMatrix == true

Mr.doob 15 vuotta sitten
vanhempi
commit
369a8661dc
3 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 0 0
      build/Three.js
  2. 0 0
      build/ThreeDebug.js
  3. 2 0
      src/renderers/WebGLRenderer.js

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
build/Three.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
build/ThreeDebug.js


+ 2 - 0
src/renderers/WebGLRenderer.js

@@ -161,6 +161,8 @@ THREE.WebGLRenderer = function () {
 
 				}
 
+				camera.autoUpdateMatrix && camera.updateMatrix();
+				object.autoUpdateMatrix && object.updateMatrix();
 
 				viewMatrix.multiply( camera.matrix, object.matrix );
 

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä