Skip to content

fix(core): clipspace depth in wgsl - #10544

Merged
Pessimistress merged 1 commit into
masterfrom
x/clipspace-webgpu
Aug 12, 2026
Merged

Pessimistress merged 1 commit into
masterfrom
x/clipspace-webgpu

Conversation

@Pessimistress

Copy link
Copy Markdown
Collaborator

Background

In WebGPU, normalized device coordinates (NDC) for the depth (z-value) is [0, 1], instead of WebGL's [-1, 1]. This results in some geometries being clipped unexpectedly under the existing viewports' projection matrices.

Discussion: should getUniforms generate different matrices depending on the target device?

Change List

  • Remap clipPosition in wgsl's project_common_position_to_clipspace

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 84.087%. remained the same — x/clipspace-webgpu into master

@Pessimistress
Pessimistress merged commit 5fc9134 into master Aug 12, 2026
5 checks passed
@Pessimistress
Pessimistress deleted the x/clipspace-webgpu branch August 12, 2026 15:47
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.

3 participants