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

GTAONode: Fix AO with WebGL backend. #29593

Merged
merged 4 commits into from
Oct 8, 2024
Merged

GTAONode: Fix AO with WebGL backend. #29593

merged 4 commits into from
Oct 8, 2024

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Oct 8, 2024

Related issue: #29588

Description

Second attempt to fix the AO in webgpu_postprocessing_ao when using a WebGL backend.

The issue is indeed different NDC Z conventions in WebGL and WebGPU. There is now a core function getViewPosition() that takes care of that. The previous PR failed because getSceneUvAndDepth() is actually compatible for both WebGL and WebGPU.

@Mugen87 Mugen87 added this to the r170 milestone Oct 8, 2024
Copy link

github-actions bot commented Oct 8, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 689.82
170.9
689.82
170.9
+0 B
+0 B
WebGPU 809.73
218.11
809.96
218.19
+232 B
+74 B
WebGPU Nodes 809.24
217.98
809.47
218.05
+232 B
+73 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 462.84
111.78
462.84
111.78
+0 B
+0 B
WebGPU 535.76
144.59
535.76
144.59
+0 B
+0 B
WebGPU Nodes 491.87
134.33
491.87
134.33
+0 B
+0 B

@Mugen87 Mugen87 merged commit 35f4555 into mrdoob:dev Oct 8, 2024
12 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.

1 participant