瀏覽代碼

Updated builds.

Mugen87 1 年之前
父節點
當前提交
83ea7dbc84
共有 3 個文件被更改,包括 44 次插入0 次删除
  1. 22 0
      build/three.cjs
  2. 22 0
      build/three.module.js
  3. 0 0
      build/three.module.min.js

+ 22 - 0
build/three.cjs

@@ -21826,6 +21826,8 @@ function WebGLRenderState( extensions ) {
 
 	function setupLightsView( camera ) {
 
+		state.camera = camera;
+
 		lights.setupView( lightsArray, camera );
 
 	}
@@ -21835,6 +21837,7 @@ function WebGLRenderState( extensions ) {
 		shadowsArray: shadowsArray,
 
 		lights: lights,
+		camera: null,
 
 		transmissionRenderTarget: {}
 	};
@@ -29066,6 +29069,7 @@ class WebGLRenderer {
 			}
 
 			currentRenderState.setupLights( _this._useLegacyLights );
+			currentRenderState.setupLightsView( camera );
 
 			// Only initialize materials in the new scene, not the targetScene.
 
@@ -29359,6 +29363,24 @@ class WebGLRenderer {
 
 				currentRenderState = renderStateStack[ renderStateStack.length - 1 ];
 
+				// restore clipping uniforms and viewport
+
+				const renderStateCamera = currentRenderState.state.camera;
+
+				if ( renderStateCamera !== null ) {
+
+					if ( _clippingEnabled === true ) clipping.setGlobalState( _this.clippingPlanes, renderStateCamera );
+
+					const viewport = renderStateCamera.viewport;
+
+					if ( viewport !== undefined ) {
+
+						state.viewport( viewport );
+
+					}
+
+				}
+
 			} else {
 
 				currentRenderState = null;

+ 22 - 0
build/three.module.js

@@ -21824,6 +21824,8 @@ function WebGLRenderState( extensions ) {
 
 	function setupLightsView( camera ) {
 
+		state.camera = camera;
+
 		lights.setupView( lightsArray, camera );
 
 	}
@@ -21833,6 +21835,7 @@ function WebGLRenderState( extensions ) {
 		shadowsArray: shadowsArray,
 
 		lights: lights,
+		camera: null,
 
 		transmissionRenderTarget: {}
 	};
@@ -29064,6 +29067,7 @@ class WebGLRenderer {
 			}
 
 			currentRenderState.setupLights( _this._useLegacyLights );
+			currentRenderState.setupLightsView( camera );
 
 			// Only initialize materials in the new scene, not the targetScene.
 
@@ -29357,6 +29361,24 @@ class WebGLRenderer {
 
 				currentRenderState = renderStateStack[ renderStateStack.length - 1 ];
 
+				// restore clipping uniforms and viewport
+
+				const renderStateCamera = currentRenderState.state.camera;
+
+				if ( renderStateCamera !== null ) {
+
+					if ( _clippingEnabled === true ) clipping.setGlobalState( _this.clippingPlanes, renderStateCamera );
+
+					const viewport = renderStateCamera.viewport;
+
+					if ( viewport !== undefined ) {
+
+						state.viewport( viewport );
+
+					}
+
+				}
+
 			} else {
 
 				currentRenderState = null;

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


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