Skip to content

Comments

WebGPURenderer: Fix texture compare fallback for shadows.#33050

Merged
Mugen87 merged 1 commit intomrdoob:devfrom
Mugen87:dev5
Feb 23, 2026
Merged

WebGPURenderer: Fix texture compare fallback for shadows.#33050
Mugen87 merged 1 commit intomrdoob:devfrom
Mugen87:dev5

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Feb 23, 2026

Fixed #33048.

Description

#33048 showed that a few bits for Android are missing to make PCF shadows work correctly.

  • In TextureNode, all less and greater compare functions must be handled and mapped to the correct step() fallback (that's also important for reversed depth buffer).
  • Deactivate linear filtering when texture comparison isn't supported (use the default nearest filtering of depth textures).

@github-actions
Copy link

github-actions bot commented Feb 23, 2026

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 359.17
85.24
359.17
85.24
+0 B
+0 B
WebGPU 626.25
174.04
626.44
174.13
+186 B
+80 B
WebGPU Nodes 624.83
173.8
625.02
173.88
+186 B
+79 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 490.91
119.65
490.91
119.65
+0 B
+0 B
WebGPU 699.88
189.07
700.06
189.13
+181 B
+60 B
WebGPU Nodes 649.09
176.43
649.27
176.49
+181 B
+61 B

@Mugen87 Mugen87 merged commit 1178b24 into mrdoob:dev Feb 23, 2026
10 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: Shadows crash on Android — TEXTURE_COMPARE fallback incomplete

1 participant