Skip to content
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

WebGPURenderer: RenderBundle support transparent objects #30689

Merged

Conversation

RenaudRohlinger
Copy link
Collaborator

Fixed #30681

Description

Support transparent objects with RenderBundle.

This contribution is funded by Utsubo

@RenaudRohlinger RenaudRohlinger added this to the r175 milestone Mar 9, 2025
Copy link

github-actions bot commented Mar 9, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.02
78.26
336.02
78.26
+0 B
+0 B
WebGPU 523.86
145.45
523.98
145.48
+115 B
+25 B
WebGPU Nodes 523.33
145.35
523.45
145.37
+115 B
+24 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.06
112.14
465.06
112.14
+0 B
+0 B
WebGPU 594.27
161.06
594.38
161.07
+115 B
+20 B
WebGPU Nodes 549.39
150.49
549.51
150.51
+115 B
+20 B

@RenaudRohlinger RenaudRohlinger merged commit 560af5a into mrdoob:dev Mar 9, 2025
12 checks passed
@sunag
Copy link
Collaborator

sunag commented Mar 11, 2025

This was intentional for opaque materials to avoid sorting issues. I think we will need two separate bundles for opaque and transparent if we want to use transmission as well.

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.

BundleGroup not working with transparent material
3 participants