Browse Source

WebVRManager: Reset camera rotation when not presenting.

Mr.doob 6 năm trước cách đây
mục cha
commit
0ed2bd66cd

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

@@ -237,6 +237,8 @@ function WebVRManager( renderer ) {
 		if ( isPresenting() === false ) {
 		if ( isPresenting() === false ) {
 
 
 			camera.position.set( 0, userHeight, 0 );
 			camera.position.set( 0, userHeight, 0 );
+			camera.rotation.set( 0, 0, 0 );
+
 			return camera;
 			return camera;
 
 
 		}
 		}