Browse Source

Correctly set display bounds (see #9732) (#9743)

Brian Chirls 8 years ago
parent
commit
702a8b999a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/effects/VREffect.js

+ 2 - 2
examples/js/effects/VREffect.js

@@ -113,8 +113,8 @@ THREE.VREffect = function ( renderer, onError ) {
 
 
 				var layer = layers[0];
 				var layer = layers[0];
 
 
-				leftBounds = layer.leftBounds !== null && layer.leftBounds.length === 4 ? leftBounds : [ 0.0, 0.0, 0.5, 1.0 ];
-				rightBounds = layer.rightBounds !== null && layer.rightBounds.length === 4 ? rightBounds : [ 0.5, 0.0, 0.5, 1.0 ];
+				leftBounds = layer.leftBounds !== null && layer.leftBounds.length === 4 ? layer.leftBounds : [ 0.0, 0.0, 0.5, 1.0 ];
+				rightBounds = layer.rightBounds !== null && layer.rightBounds.length === 4 ? layer.rightBounds : [ 0.5, 0.0, 0.5, 1.0 ];
 
 
 			}
 			}