Skip to content

Commit 158ba8a

Browse files
brianchirlsmrdoob
authored andcommitted
Correctly set display bounds (see mrdoob#9732) (mrdoob#9743)
1 parent be3486d commit 158ba8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/effects/VREffect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ THREE.VREffect = function ( renderer, onError ) {
113113

114114
var layer = layers[0];
115115

116-
leftBounds = layer.leftBounds !== null && layer.leftBounds.length === 4 ? leftBounds : [ 0.0, 0.0, 0.5, 1.0 ];
117-
rightBounds = layer.rightBounds !== null && layer.rightBounds.length === 4 ? rightBounds : [ 0.5, 0.0, 0.5, 1.0 ];
116+
leftBounds = layer.leftBounds !== null && layer.leftBounds.length === 4 ? layer.leftBounds : [ 0.0, 0.0, 0.5, 1.0 ];
117+
rightBounds = layer.rightBounds !== null && layer.rightBounds.length === 4 ? layer.rightBounds : [ 0.5, 0.0, 0.5, 1.0 ];
118118

119119
}
120120

0 commit comments

Comments
 (0)