Skip to content

Commit 8fcbbc5

Browse files
authored
Merge pull request #14362 from mrdoob/webvr
WebVRManager: Overwrite camera position by default for consistency.
2 parents 61821b4 + 15fbf73 commit 8fcbbc5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/renderers/webvr/WebVRManager.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,12 @@ function WebVRManager( renderer ) {
211211

212212
this.getCamera = function ( camera ) {
213213

214-
if ( device === null ) return camera;
214+
if ( device === null ) {
215+
216+
camera.position.set( 0, scope.userHeight, 0 );
217+
return camera;
218+
219+
}
215220

216221
device.depthNear = camera.near;
217222
device.depthFar = camera.far;

0 commit comments

Comments
 (0)