Mr.doob пре 5 година
родитељ
комит
39933dfd71
3 измењених фајлова са 34 додато и 19 уклоњено
  1. 9 2
      build/three.js
  2. 16 15
      build/three.min.js
  3. 9 2
      build/three.module.js

+ 9 - 2
build/three.js

@@ -13503,6 +13503,14 @@
 
 		},
 
+		updateWorldMatrix: function ( updateParents, updateChildren ) {
+
+			Object3D.prototype.updateWorldMatrix.call( this, updateParents, updateChildren );
+
+			this.matrixWorldInverse.getInverse( this.matrixWorld );
+
+		},
+
 		clone: function () {
 
 			return new this.constructor().copy( this );
@@ -23279,10 +23287,9 @@
 
 					var view = views[ i ];
 					var viewport = baseLayer.getViewport( view );
-					var cameraMatrix = view.transform.matrix;
 
 					var camera = cameraVR.cameras[ i ];
-					camera.matrix.fromArray( cameraMatrix );
+					camera.matrix.fromArray( view.transform.matrix );
 					camera.projectionMatrix.fromArray( view.projectionMatrix );
 					camera.viewport.set( viewport.x, viewport.y, viewport.width, viewport.height );
 

Разлика између датотеке није приказан због своје велике величине
+ 16 - 15
build/three.min.js


+ 9 - 2
build/three.module.js

@@ -13489,6 +13489,14 @@ Camera.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 	},
 
+	updateWorldMatrix: function ( updateParents, updateChildren ) {
+
+		Object3D.prototype.updateWorldMatrix.call( this, updateParents, updateChildren );
+
+		this.matrixWorldInverse.getInverse( this.matrixWorld );
+
+	},
+
 	clone: function () {
 
 		return new this.constructor().copy( this );
@@ -23271,10 +23279,9 @@ function WebXRManager( renderer, gl ) {
 
 				var view = views[ i ];
 				var viewport = baseLayer.getViewport( view );
-				var cameraMatrix = view.transform.matrix;
 
 				var camera = cameraVR.cameras[ i ];
-				camera.matrix.fromArray( cameraMatrix );
+				camera.matrix.fromArray( view.transform.matrix );
 				camera.projectionMatrix.fromArray( view.projectionMatrix );
 				camera.viewport.set( viewport.x, viewport.y, viewport.width, viewport.height );
 

Неке датотеке нису приказане због велике количине промена