瀏覽代碼

Updated builds.

Mr.doob 8 年之前
父節點
當前提交
f8faba9bb4
共有 3 個文件被更改,包括 211 次插入211 次删除
  1. 6 6
      build/three.js
  2. 199 199
      build/three.min.js
  3. 6 6
      build/three.module.js

+ 6 - 6
build/three.js

@@ -20302,14 +20302,14 @@
 
 			_viewport.set( x, y, width, height );
 			state.viewport( _currentViewport.copy( _viewport ).multiplyScalar( _pixelRatio ) );
-		
+
 		};
 
 		this.setScissor = function ( x, y, width, height ) {
 
 			_scissor.set( x, y, width, height );
 			state.scissor( _currentScissor.copy( _scissor ).multiplyScalar( _pixelRatio ) );
-		
+
 		};
 
 		this.setScissorTest = function ( boolean ) {
@@ -21323,10 +21323,10 @@
 						var camera2 = cameras[ j ];
 						var bounds = camera2.bounds;
 
-						var x = bounds.x * _width * _pixelRatio;
-						var y = bounds.y * _height * _pixelRatio;
-						var width = bounds.z * _width * _pixelRatio;
-						var height = bounds.w * _height * _pixelRatio;
+						var x = bounds.x * _width;
+						var y = bounds.y * _height;
+						var width = bounds.z * _width;
+						var height = bounds.w * _height;
 
 						_this.setViewport( x, y, width, height );
 						_this.setScissor( x, y, width, height );

File diff suppressed because it is too large
+ 199 - 199
build/three.min.js


+ 6 - 6
build/three.module.js

@@ -20296,14 +20296,14 @@ function WebGLRenderer( parameters ) {
 
 		_viewport.set( x, y, width, height );
 		state.viewport( _currentViewport.copy( _viewport ).multiplyScalar( _pixelRatio ) );
-	
+
 	};
 
 	this.setScissor = function ( x, y, width, height ) {
 
 		_scissor.set( x, y, width, height );
 		state.scissor( _currentScissor.copy( _scissor ).multiplyScalar( _pixelRatio ) );
-	
+
 	};
 
 	this.setScissorTest = function ( boolean ) {
@@ -21317,10 +21317,10 @@ function WebGLRenderer( parameters ) {
 					var camera2 = cameras[ j ];
 					var bounds = camera2.bounds;
 
-					var x = bounds.x * _width * _pixelRatio;
-					var y = bounds.y * _height * _pixelRatio;
-					var width = bounds.z * _width * _pixelRatio;
-					var height = bounds.w * _height * _pixelRatio;
+					var x = bounds.x * _width;
+					var y = bounds.y * _height;
+					var width = bounds.z * _width;
+					var height = bounds.w * _height;
 
 					_this.setViewport( x, y, width, height );
 					_this.setScissor( x, y, width, height );

Some files were not shown because too many files changed in this diff