2
0
Эх сурвалжийг харах

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

Brian Chirls 8 жил өмнө
parent
commit
702a8b999a

+ 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 ];
 
 			}