Browse Source

WebVRManager: Overwrite camera position by default for consistency.

Mr.doob 7 years ago
parent
commit
15fbf73787
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/renderers/webvr/WebVRManager.js

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

@@ -211,7 +211,12 @@ function WebVRManager( renderer ) {
 
 	this.getCamera = function ( camera ) {
 
-		if ( device === null ) return camera;
+		if ( device === null ) {
+
+			camera.position.set( 0, scope.userHeight, 0 );
+			return camera;
+
+		}
 
 		device.depthNear = camera.near;
 		device.depthFar = camera.far;