Skip to content

WebGLRenderer: Align shadow camera layer handling to WebGPURenderer. - #34670

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev2
Sep 26, 2026
Merged

Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev2

Conversation

@Mugen87

@Mugen87 Mugen87 commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

Fixed #34668.

Description

The PR aligns shadow camera layers handling to WebGPURenderer.

We use a similar check as in ShadowNode (see below) to detect a set layer and then use it in the subsequent code.

if ( ( shadow.camera.layers.mask & 0xFFFFFFFE ) === 0 ) {

@Mugen87 Mugen87 added this to the r187 milestone Sep 26, 2026
@github-actions

Copy link
Copy Markdown

πŸ“¦ Bundle size

Full ESM build, minified and gzipped.

Before After Diff
Core 389.92
102.29
389.92
102.29
+0 B
+0 B
WebGL 372.59
87.13
372.66
87.15
+64 B
+18 B
WebGPU 427.23
114.94
427.23
114.94
+0 B
+0 B
WebGPU Nodes 713.9
196.03
713.9
196.03
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 517.23
124.23
517.29
124.25
+64 B
+18 B
WebGPU 767.44
205.57
767.44
205.57
+0 B
+0 B
WebGPU Nodes 713.35
192.1
713.35
192.1
+0 B
+0 B

@Mugen87
Mugen87 merged commit 478c438 into mrdoob:dev Sep 26, 2026
10 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.

WebGLRenderer: shadow pass ignores light.shadow.camera.layers (inconsistent with WebGPURenderer since #30877)

1 participant