Selaa lähdekoodia

Updated builds.

Mr.doob 8 vuotta sitten
vanhempi
commit
73765abdf6
3 muutettua tiedostoa jossa 303 lisäystä ja 299 poistoa
  1. 15 13
      build/three.js
  2. 273 273
      build/three.min.js
  3. 15 13
      build/three.module.js

+ 15 - 13
build/three.js

@@ -21051,6 +21051,12 @@
 			state.buffers.depth.setMask( true );
 			state.buffers.color.setMask( true );
 
+			if ( camera.isArrayCamera && camera.enabled ) {
+
+				_this.setScissorTest( false );
+
+			}
+
 			camera.onAfterRender( _this );
 
 			// _gl.finish();
@@ -21228,19 +21234,15 @@
 						var camera2 = cameras[ j ];
 						var bounds = camera2.bounds;
 
-						_currentViewport.set(
-							bounds.x * _width, bounds.y * _height,
-							bounds.z * _width, bounds.w * _height
-						).multiplyScalar( _pixelRatio );
-
-						_currentScissor.set(
-							bounds.x * _width, bounds.y * _height,
-							bounds.z * _width, bounds.w * _height
-						).multiplyScalar( _pixelRatio );
-
-						state.viewport( _currentViewport );
-						state.scissor( _currentScissor );
-						state.setScissorTest( true );
+						_this.setViewport(
+							bounds.x * _width * _pixelRatio, bounds.y * _height * _pixelRatio,
+							bounds.z * _width * _pixelRatio, bounds.w * _height * _pixelRatio
+						);
+						_this.setScissor(
+							bounds.x * _width * _pixelRatio, bounds.y * _height * _pixelRatio,
+							bounds.z * _width * _pixelRatio, bounds.w * _height * _pixelRatio
+						);
+						_this.setScissorTest( true );
 
 						renderObject( object, scene, camera2, geometry, material, group );
 

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 273 - 273
build/three.min.js


+ 15 - 13
build/three.module.js

@@ -21045,6 +21045,12 @@ function WebGLRenderer( parameters ) {
 		state.buffers.depth.setMask( true );
 		state.buffers.color.setMask( true );
 
+		if ( camera.isArrayCamera && camera.enabled ) {
+
+			_this.setScissorTest( false );
+
+		}
+
 		camera.onAfterRender( _this );
 
 		// _gl.finish();
@@ -21222,19 +21228,15 @@ function WebGLRenderer( parameters ) {
 					var camera2 = cameras[ j ];
 					var bounds = camera2.bounds;
 
-					_currentViewport.set(
-						bounds.x * _width, bounds.y * _height,
-						bounds.z * _width, bounds.w * _height
-					).multiplyScalar( _pixelRatio );
-
-					_currentScissor.set(
-						bounds.x * _width, bounds.y * _height,
-						bounds.z * _width, bounds.w * _height
-					).multiplyScalar( _pixelRatio );
-
-					state.viewport( _currentViewport );
-					state.scissor( _currentScissor );
-					state.setScissorTest( true );
+					_this.setViewport(
+						bounds.x * _width * _pixelRatio, bounds.y * _height * _pixelRatio,
+						bounds.z * _width * _pixelRatio, bounds.w * _height * _pixelRatio
+					);
+					_this.setScissor(
+						bounds.x * _width * _pixelRatio, bounds.y * _height * _pixelRatio,
+						bounds.z * _width * _pixelRatio, bounds.w * _height * _pixelRatio
+					);
+					_this.setScissorTest( true );
 
 					renderObject( object, scene, camera2, geometry, material, group );
 

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä