Browse Source

Updated builds.

Mugen87 1 year ago
parent
commit
df4fb14945
3 changed files with 18 additions and 6 deletions
  1. 9 3
      build/three.cjs
  2. 9 3
      build/three.module.js
  3. 0 0
      build/three.module.min.js

+ 9 - 3
build/three.cjs

@@ -21799,7 +21799,9 @@ function WebGLRenderState( extensions ) {
 	const lightsArray = [];
 	const lightsArray = [];
 	const shadowsArray = [];
 	const shadowsArray = [];
 
 
-	function init() {
+	function init( camera ) {
+
+		state.camera = camera;
 
 
 		lightsArray.length = 0;
 		lightsArray.length = 0;
 		shadowsArray.length = 0;
 		shadowsArray.length = 0;
@@ -21834,6 +21836,8 @@ function WebGLRenderState( extensions ) {
 		lightsArray: lightsArray,
 		lightsArray: lightsArray,
 		shadowsArray: shadowsArray,
 		shadowsArray: shadowsArray,
 
 
+		camera: null,
+
 		lights: lights,
 		lights: lights,
 
 
 		transmissionRenderTarget: {}
 		transmissionRenderTarget: {}
@@ -29023,7 +29027,7 @@ class WebGLRenderer {
 			if ( targetScene === null ) targetScene = scene;
 			if ( targetScene === null ) targetScene = scene;
 
 
 			currentRenderState = renderStates.get( targetScene );
 			currentRenderState = renderStates.get( targetScene );
-			currentRenderState.init();
+			currentRenderState.init( camera );
 
 
 			renderStateStack.push( currentRenderState );
 			renderStateStack.push( currentRenderState );
 
 
@@ -29240,7 +29244,7 @@ class WebGLRenderer {
 			if ( scene.isScene === true ) scene.onBeforeRender( _this, scene, camera, _currentRenderTarget );
 			if ( scene.isScene === true ) scene.onBeforeRender( _this, scene, camera, _currentRenderTarget );
 
 
 			currentRenderState = renderStates.get( scene, renderStateStack.length );
 			currentRenderState = renderStates.get( scene, renderStateStack.length );
-			currentRenderState.init();
+			currentRenderState.init( camera );
 
 
 			renderStateStack.push( currentRenderState );
 			renderStateStack.push( currentRenderState );
 
 
@@ -29359,6 +29363,8 @@ class WebGLRenderer {
 
 
 				currentRenderState = renderStateStack[ renderStateStack.length - 1 ];
 				currentRenderState = renderStateStack[ renderStateStack.length - 1 ];
 
 
+				if ( _clippingEnabled === true ) clipping.setGlobalState( _this.clippingPlanes, currentRenderState.state.camera );
+
 			} else {
 			} else {
 
 
 				currentRenderState = null;
 				currentRenderState = null;

+ 9 - 3
build/three.module.js

@@ -21797,7 +21797,9 @@ function WebGLRenderState( extensions ) {
 	const lightsArray = [];
 	const lightsArray = [];
 	const shadowsArray = [];
 	const shadowsArray = [];
 
 
-	function init() {
+	function init( camera ) {
+
+		state.camera = camera;
 
 
 		lightsArray.length = 0;
 		lightsArray.length = 0;
 		shadowsArray.length = 0;
 		shadowsArray.length = 0;
@@ -21832,6 +21834,8 @@ function WebGLRenderState( extensions ) {
 		lightsArray: lightsArray,
 		lightsArray: lightsArray,
 		shadowsArray: shadowsArray,
 		shadowsArray: shadowsArray,
 
 
+		camera: null,
+
 		lights: lights,
 		lights: lights,
 
 
 		transmissionRenderTarget: {}
 		transmissionRenderTarget: {}
@@ -29021,7 +29025,7 @@ class WebGLRenderer {
 			if ( targetScene === null ) targetScene = scene;
 			if ( targetScene === null ) targetScene = scene;
 
 
 			currentRenderState = renderStates.get( targetScene );
 			currentRenderState = renderStates.get( targetScene );
-			currentRenderState.init();
+			currentRenderState.init( camera );
 
 
 			renderStateStack.push( currentRenderState );
 			renderStateStack.push( currentRenderState );
 
 
@@ -29238,7 +29242,7 @@ class WebGLRenderer {
 			if ( scene.isScene === true ) scene.onBeforeRender( _this, scene, camera, _currentRenderTarget );
 			if ( scene.isScene === true ) scene.onBeforeRender( _this, scene, camera, _currentRenderTarget );
 
 
 			currentRenderState = renderStates.get( scene, renderStateStack.length );
 			currentRenderState = renderStates.get( scene, renderStateStack.length );
-			currentRenderState.init();
+			currentRenderState.init( camera );
 
 
 			renderStateStack.push( currentRenderState );
 			renderStateStack.push( currentRenderState );
 
 
@@ -29357,6 +29361,8 @@ class WebGLRenderer {
 
 
 				currentRenderState = renderStateStack[ renderStateStack.length - 1 ];
 				currentRenderState = renderStateStack[ renderStateStack.length - 1 ];
 
 
+				if ( _clippingEnabled === true ) clipping.setGlobalState( _this.clippingPlanes, currentRenderState.state.camera );
+
 			} else {
 			} else {
 
 
 				currentRenderState = null;
 				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