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

WebGPURenderer: invert viewport/scissor y coords #26730

Merged
merged 4 commits into from
Sep 13, 2023
Merged

Conversation

aardgoose
Copy link
Contributor

WebGPU uses the top left corner of the framebuffer origin for viewport and scissor operations while WebGL uses the bottom left corner. Preserve the existing API by inverting y coordinate and adjust line2 example.

@sunag sunag added this to the r157 milestone Sep 12, 2023
@sunag sunag merged commit f98f680 into mrdoob:dev Sep 13, 2023
16 of 17 checks passed
@sunag
Copy link
Collaborator

sunag commented Sep 13, 2023

Thanks!

@aardgoose aardgoose deleted the invert branch October 15, 2023 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants