Jelajahi Sumber

WebVRManager: Fixed standingMatrix not applying to camera.

Mr.doob 8 tahun lalu
induk
melakukan
360ca4b2c8
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      src/renderers/webvr/WebVRManager.js

+ 1 - 0
src/renderers/webvr/WebVRManager.js

@@ -115,6 +115,7 @@ function WebVRManager( renderer ) {
 			standingMatrixInverse.getInverse( standingMatrix );
 
 			camera.matrixWorld.multiply( standingMatrix );
+			camera.matrixWorldInverse.multiply( standingMatrixInverse );
 
 		}