|
@@ -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 );
|
|
|
|