Skip to content

ShadowNode: Clean up. #31104

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 1 commit into from
May 14, 2025
Merged

ShadowNode: Clean up. #31104

merged 1 commit into from
May 14, 2025

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