浏览代码

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

Brian Chirls 8 年之前
父节点
当前提交
702a8b999a
共有 1 个文件被更改,包括 2 次插入2 次删除
  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];
 
-				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 ];
 
 			}