diff --git a/src/renderers/webvr/WebVRManager.js b/src/renderers/webvr/WebVRManager.js index 5dd8f720cbfc51..d8643f27f695d1 100644 --- a/src/renderers/webvr/WebVRManager.js +++ b/src/renderers/webvr/WebVRManager.js @@ -15,6 +15,8 @@ function WebVRManager( renderer ) { } + var matrixWorldInverse = new THREE.Matrix4(); + var cameraL = new THREE.PerspectiveCamera(); cameraL.bounds = new THREE.Vector4( 0.0, 0.0, 0.5, 1.0 ); cameraL.layers.enable( 1 ); @@ -115,8 +117,10 @@ function WebVRManager( renderer ) { if ( parent !== null ) { - cameraL.matrixWorldInverse.multiply( parent.matrixWorldInverse ); - cameraR.matrixWorldInverse.multiply( parent.matrixWorldInverse ); + matrixWorldInverse.getInverse( parent.matrixWorld ); + + cameraL.matrixWorldInverse.multiply( matrixWorldInverse ); + cameraR.matrixWorldInverse.multiply( matrixWorldInverse ); }