Skip to content

Commit 08bb529

Browse files
authored
WebGPURenderer: Added tone-mapping support for WebXR (#30499)
1 parent 0c05674 commit 08bb529

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/renderers/common/Renderer.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,9 +1451,16 @@ class Renderer {
14511451
// a clear operation clears the intermediate renderTarget texture, but should not update the screen canvas.
14521452

14531453
const currentAutoClear = this.autoClear;
1454+
const currentXR = this.xr.enabled;
1455+
14541456
this.autoClear = false;
1457+
this.xr.enabled = false;
1458+
14551459
this._renderScene( quad, quad.camera, false );
1460+
14561461
this.autoClear = currentAutoClear;
1462+
this.xr.enabled = currentXR;
1463+
14571464

14581465
}
14591466

@@ -2051,7 +2058,7 @@ class Renderer {
20512058
*/
20522059
get isOutputTarget() {
20532060

2054-
return this._renderTarget === this._outputRenderTarget;
2061+
return this._renderTarget === this._outputRenderTarget || this._renderTarget === null;
20552062

20562063
}
20572064

0 commit comments

Comments
 (0)