Browse Source

WebGLRenderer: Correctly restore render target during transmission pass. (#31320)

* WebGLRenderer: Correctly restore render target during transmission pass.

* E2E: Exclude unstable example.
Michael Herzog 8 months ago
parent
commit
96011b9c29
2 changed files with 5 additions and 1 deletions
  1. 4 1
      src/renderers/WebGLRenderer.js
  2. 1 0
      test/e2e/puppeteer.js

+ 4 - 1
src/renderers/WebGLRenderer.js

@@ -1890,6 +1890,9 @@ class WebGLRenderer {
 			//
 
 			const currentRenderTarget = _this.getRenderTarget();
+			const currentActiveCubeFace = _this.getActiveCubeFace();
+			const currentActiveMipmapLevel = _this.getActiveMipmapLevel();
+
 			_this.setRenderTarget( transmissionRenderTarget );
 
 			_this.getClearColor( _currentClearColor );
@@ -1959,7 +1962,7 @@ class WebGLRenderer {
 
 			}
 
-			_this.setRenderTarget( currentRenderTarget );
+			_this.setRenderTarget( currentRenderTarget, currentActiveCubeFace, currentActiveMipmapLevel );
 
 			_this.setClearColor( _currentClearColor, _currentClearAlpha );
 

+ 1 - 0
test/e2e/puppeteer.js

@@ -111,6 +111,7 @@ const exceptionList = [
 	'webgpu_multisampled_renderbuffers',
 	'webgl_test_wide_gamut',
 	'webgl_volume_instancing',
+	'webgl_buffergeometry',
 	'webgl_buffergeometry_attributes_integer',
 	'webgl_batch_lod_bvh',
 

粤ICP备19079148号