From 5345d21f1b16ce324b21febfef0437f6e8104764 Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Sat, 27 Jun 2026 13:48:12 +0200 Subject: [PATCH 1/2] WebGPURenderer: Fix background rotation with nodes. (#33892) --- src/nodes/accessors/SceneProperties.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodes/accessors/SceneProperties.js b/src/nodes/accessors/SceneProperties.js index cea87c6968eec1..14e977921d8baf 100644 --- a/src/nodes/accessors/SceneProperties.js +++ b/src/nodes/accessors/SceneProperties.js @@ -31,7 +31,7 @@ export const backgroundRotation = /*@__PURE__*/ uniform( new Matrix4() ).setGrou const background = scene.background; - if ( background !== null && background.isTexture && background.mapping !== UVMapping ) { + if ( ( background !== null && background.isTexture && background.mapping !== UVMapping ) || ( scene.backgroundNode && scene.backgroundNode.isNode ) ) { // note: since the matrix is orthonormal, we can use the more-efficient transpose() in lieu of invert() _m1.makeRotationFromEuler( scene.backgroundRotation ).transpose(); From 94f64a99ff14bf9b5a9d6af98449b1ba9d4bc8e8 Mon Sep 17 00:00:00 2001 From: sunag Date: Sat, 27 Jun 2026 14:26:17 -0300 Subject: [PATCH 2/2] TSL: Fix crash in `MRT` when output is not bound by RenderTarget (#33888) --- src/nodes/core/MRTNode.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nodes/core/MRTNode.js b/src/nodes/core/MRTNode.js index b6d46ba751ef1f..eaf54b6bcd4f9e 100644 --- a/src/nodes/core/MRTNode.js +++ b/src/nodes/core/MRTNode.js @@ -170,6 +170,10 @@ class MRTNode extends OutputStructNode { for ( const name in outputNodes ) { const index = getTextureIndex( textures, name ); + + // Ignore if the output exists in the MRT but has never been used. + if ( index === - 1 ) continue; + const type = builder.getOutputType( index ); members[ index ] = outputNodes[ name ].convert( type );