Bladeren bron

WebGPURenderer: Added tone-mapping support for WebXR (#30499)

sunag 11 maanden geleden
bovenliggende
commit
08bb529704
1 gewijzigde bestanden met toevoegingen van 8 en 1 verwijderingen
  1. 8 1
      src/renderers/common/Renderer.js

+ 8 - 1
src/renderers/common/Renderer.js

@@ -1451,9 +1451,16 @@ class Renderer {
 		// a clear operation clears the intermediate renderTarget texture, but should not update the screen canvas.
 		// a clear operation clears the intermediate renderTarget texture, but should not update the screen canvas.
 
 
 		const currentAutoClear = this.autoClear;
 		const currentAutoClear = this.autoClear;
+		const currentXR = this.xr.enabled;
+
 		this.autoClear = false;
 		this.autoClear = false;
+		this.xr.enabled = false;
+
 		this._renderScene( quad, quad.camera, false );
 		this._renderScene( quad, quad.camera, false );
+
 		this.autoClear = currentAutoClear;
 		this.autoClear = currentAutoClear;
+		this.xr.enabled = currentXR;
+
 
 
 	}
 	}
 
 
@@ -2051,7 +2058,7 @@ class Renderer {
 	 */
 	 */
 	get isOutputTarget() {
 	get isOutputTarget() {
 
 
-		return this._renderTarget === this._outputRenderTarget;
+		return this._renderTarget === this._outputRenderTarget || this._renderTarget === null;
 
 
 	}
 	}
 
 

粤ICP备19079148号