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

Proposal: EXT_clip_control #3546

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

lexaknyazev
Copy link
Member

Due to historical reasons, WebGL uses [-1, +1] range for Z values. This leads to suboptimal depth buffer precision utilization because the best precision is allocated to mid-range values. When WebGL is implemented on top of Direct3D, Metal, or Vulkan, that range is rescaled to [0, +1] further increasing the loss and using extra per-vertex shader instructions.

The proposed extension would allow applications to directly use [0, +1] range.

Copy link
Member

@kenrussell kenrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, per discussion in WebGL working group.

@kenrussell kenrussell merged commit 03667ad into KhronosGroup:main Jun 29, 2023
2 checks passed
@lexaknyazev lexaknyazev deleted the proposal-clip-control branch July 2, 2023 08:33
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.

None yet

2 participants