Skip to content

WebGPURenderer: RenderBundle support transparent objects#30689

Merged
RenaudRohlinger merged 2 commits into
mrdoob:devfrom
RenaudRohlinger:utsubo/feat/bundle-transparent
Mar 9, 2025
Merged

WebGPURenderer: RenderBundle support transparent objects#30689
RenaudRohlinger merged 2 commits into
mrdoob:devfrom
RenaudRohlinger:utsubo/feat/bundle-transparent

Conversation

@RenaudRohlinger

Copy link
Copy Markdown
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
@github-actions

github-actions Bot commented Mar 9, 2025

Copy link
Copy Markdown

📦 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

Comment thread src/renderers/common/Renderer.js
@sunag

sunag commented Mar 11, 2025

Copy link
Copy Markdown
Collaborator

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