Skip to content

PointShadowNode: Adhere CubeCamera conventions. - #34899

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev2
Oct 8, 2026
Merged

Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev2

Conversation

@Mugen87

@Mugen87 Mugen87 commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Fixed #34893.

Description

The PR makes sure PointShadowNode follows the CubeCamera convention. Previosuly, it sampled the cube map differently for no apparent reason which made it necessary to have special uv coordinates (see #32379). These were not even correct as reported in #34893.

A nice side effect of this change: A CubeDepthTexture rendered with a CubeCamera on WebGPU used to be sampled wrongly. It is now consistent.

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

📦 Bundle size

Full ESM build including core, minified and gzipped.

Before After Diff
Core 390.54
102.46
390.54
102.46
+0 B
+0 B
WebGL 776.74
193.95
776.74
193.95
+0 B
+0 B
WebGPU 1089.55
293.72
1089.48
293.70
-67 B
-18 B
WebGPU Nodes 1087.49
293.38
1087.43
293.36
-67 B
-18 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 518.26
124.50
518.26
124.50
+0 B
+0 B
WebGPU 769.14
206.18
769.08
206.17
-67 B
-11 B
WebGPU Nodes 716.40
192.96
716.33
192.95
-67 B
-12 B

@Mugen87 Mugen87 added this to the r187 milestone Oct 8, 2026
@Mugen87
Mugen87 merged commit dfb859a into mrdoob:dev Oct 8, 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.

WebGPURenderer: PointLight transmitted shadows sample the wrong cube direction

1 participant