Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 27, 2025

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jun 27, 2025

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
Copy link

github-actions bot commented Jun 27, 2025

📦 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