Skip to content

ShadowNode: Clean up.#31104

Merged
Mugen87 merged 1 commit intomrdoob:devfrom
Mugen87:dev1
May 14, 2025
Merged

ShadowNode: Clean up.#31104
Mugen87 merged 1 commit intomrdoob:devfrom
Mugen87:dev1

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented May 14, 2025

Related issue: -

Description

It seems more clean to check for the light shadow type instead of the light type. In this way the code is more consistent to WebGLRenderer.

@Mugen87 Mugen87 added this to the r177 milestone May 14, 2025
@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 337.26
78.64
337.26
78.64
+0 B
+0 B
WebGPU 549.57
152.34
549.58
152.34
+18 B
+1 B
WebGPU Nodes 548.92
152.19
548.93
152.19
+18 B
+2 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 467.34
112.95
467.34
112.95
+0 B
+0 B
WebGPU 624.48
169.06
624.49
169.06
+18 B
+3 B
WebGPU Nodes 579.33
158.35
579.34
158.35
+18 B
+2 B

@Mugen87 Mugen87 merged commit 5a55dcb into mrdoob:dev May 14, 2025
12 checks passed
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
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.

1 participant