Skip to content

WebGLNodesHandler: Use the WebGL PMREM generator. - #34628

Merged
Mugen87 merged 1 commit into
devfrom
fix-webgl-nodes-pmrem
Sep 21, 2026
Merged

Mugen87 merged 1 commit into
devfrom
fix-webgl-nodes-pmrem

Conversation

@mrdoob

@mrdoob mrdoob commented Sep 21, 2026 •

Copy link
Copy Markdown
Owner

Addresses Mugen's review comment in #34585.

WebGLNodesHandler was passing common cube render targets to WebGLRenderer. Use the WebGL PMREM generator in the adapter, restoring WebGL-specific target checks and types and removing the proxy's mip viewport adjustment.

@github-actions

Copy link
Copy Markdown

πŸ“¦ Bundle size

Full ESM build, minified and gzipped.

Before After Diff
Core 389.54
102.23
389.54
102.23
+0 B
+0 B
WebGL 372.82
87.28
372.86
87.27
+33 B
-3 B
WebGPU 424.46
114.27
424.46
114.27
+0 B
+0 B
WebGPU Nodes 710.24
195.1
710.24
195.1
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 517.59
124.49
517.62
124.49
+33 B
-4 B
WebGPU 763.59
204.38
763.59
204.38
+0 B
+0 B
WebGPU Nodes 709.59
190.96
709.59
190.96
+0 B
+0 B

@mrdoob
mrdoob requested a review from Mugen87 September 21, 2026 07:31
@mrdoob mrdoob added this to the r187 milestone Sep 21, 2026
@Mugen87
Mugen87 merged commit b86460d into dev Sep 21, 2026
10 checks passed
@Mugen87

Mugen87 commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

I'll go ahead and merge since I want to have this change on dev before I make the PMREM tests on different devices.

@mrdoob
mrdoob deleted the fix-webgl-nodes-pmrem branch September 21, 2026 12:37
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.

2 participants