Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Sep 22, 2025

Fixed #31920.

Description

Makes sure the node materials only discard fragments during alpha test and alpha hash. The PR also adds below missing code for alpha to coverage.

diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );

@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.24
79.14
338.24
79.14
+0 B
+0 B
WebGPU 586.6
161.94
586.65
161.95
+51 B
+17 B
WebGPU Nodes 585.21
161.69
585.26
161.71
+51 B
+16 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 469.7
113.74
469.7
113.74
+0 B
+0 B
WebGPU 656.05
177.43
656.11
177.44
+51 B
+16 B
WebGPU Nodes 610.05
166.6
610.1
166.61
+51 B
+17 B

@sunag sunag added this to the r181 milestone Sep 22, 2025
@sunag sunag merged commit 5a1c63c into mrdoob:dev Sep 22, 2025
9 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.

Webgpu noBlending with opactity 0 dissapear is intended behaviour?

2 participants