瀏覽代碼

Updated builds.

Mr.doob 8 年之前
父節點
當前提交
3051c617e9
共有 3 個文件被更改,包括 239 次插入251 次删除
  1. 3 9
      build/three.js
  2. 233 233
      build/three.min.js
  3. 3 9
      build/three.module.js

+ 3 - 9
build/three.js

@@ -21529,12 +21529,6 @@
 			state.buffers.depth.setMask( true );
 			state.buffers.depth.setMask( true );
 			state.buffers.color.setMask( true );
 			state.buffers.color.setMask( true );
 
 
-			if ( camera.isArrayCamera ) {
-
-				_this.setScissorTest( false );
-
-			}
-
 			if ( vr.enabled ) {
 			if ( vr.enabled ) {
 
 
 				vr.submitFrame();
 				vr.submitFrame();
@@ -21724,9 +21718,9 @@
 							var width = bounds.z * _width;
 							var width = bounds.z * _width;
 							var height = bounds.w * _height;
 							var height = bounds.w * _height;
 
 
-							_this.setViewport( x, y, width, height );
-							_this.setScissor( x, y, width, height );
-							_this.setScissorTest( true );
+							state.viewport( _currentViewport.set( x, y, width, height ) );
+							state.scissor( _currentScissor.set( x, y, width, height ) );
+							state.setScissorTest( true );
 
 
 							renderObject( object, scene, camera2, geometry, material, group );
 							renderObject( object, scene, camera2, geometry, material, group );
 
 

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


+ 3 - 9
build/three.module.js

@@ -21523,12 +21523,6 @@ function WebGLRenderer( parameters ) {
 		state.buffers.depth.setMask( true );
 		state.buffers.depth.setMask( true );
 		state.buffers.color.setMask( true );
 		state.buffers.color.setMask( true );
 
 
-		if ( camera.isArrayCamera ) {
-
-			_this.setScissorTest( false );
-
-		}
-
 		if ( vr.enabled ) {
 		if ( vr.enabled ) {
 
 
 			vr.submitFrame();
 			vr.submitFrame();
@@ -21718,9 +21712,9 @@ function WebGLRenderer( parameters ) {
 						var width = bounds.z * _width;
 						var width = bounds.z * _width;
 						var height = bounds.w * _height;
 						var height = bounds.w * _height;
 
 
-						_this.setViewport( x, y, width, height );
-						_this.setScissor( x, y, width, height );
-						_this.setScissorTest( true );
+						state.viewport( _currentViewport.set( x, y, width, height ) );
+						state.scissor( _currentScissor.set( x, y, width, height ) );
+						state.setScissorTest( true );
 
 
 						renderObject( object, scene, camera2, geometry, material, group );
 						renderObject( object, scene, camera2, geometry, material, group );
 
 

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