Преглед на файлове

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

Brian Chirls преди 9 години
родител
ревизия
158ba8afd6
променени са 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 ];
 
 			}