Skip to content

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

Merged
Mugen87 merged 2 commits into
mrdoob:devfrom
Mugen87:dev1
Jun 27, 2025
Merged

WebGLRenderer: Correctly restore render target during transmission pass.#31320
Mugen87 merged 2 commits into
mrdoob:devfrom
Mugen87:dev1

Conversation

@Mugen87

@Mugen87 Mugen87 commented Jun 27, 2025

Copy link
Copy Markdown
Collaborator

Fixed #31318.

Description

The transmission pass of WebGLRenderer does not correctly restore the render target state which produces a wrong output when rendering with a cube camera.

@Mugen87 Mugen87 added this to the r178 milestone Jun 27, 2025
@github-actions

github-actions Bot commented Jun 27, 2025

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 337.65
78.76
337.71
78.77
+55 B
+7 B
WebGPU 557.6
154.28
557.6
154.28
+0 B
+0 B
WebGPU Nodes 556.52
154.07
556.52
154.07
+0 B
+0 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 468.89
113.45
468.94
113.46
+55 B
+9 B
WebGPU 632.96
171.3
632.96
171.3
+0 B
+0 B
WebGPU Nodes 588.01
160.61
588.01
160.61
+0 B
+0 B

@Mugen87 Mugen87 merged commit 96011b9 into mrdoob:dev Jun 27, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transmissive Material Causes Incorrect CubeCamera Output

1 participant