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

ReflectorNode: Fix projection matrix computation for WebGL. #29630

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Oct 12, 2024

Fixed #29626 (comment).

Description

ReflectorNode updates the projection matrix of its virtual camera such that objects behind the reflector are clipped. The existing computation only works for WebGPU. WebGL needs different code.

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

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 689.92
170.93
689.92
170.93
+0 B
+0 B
WebGPU 814.82
219.39
814.86
219.4
+33 B
+15 B
WebGPU Nodes 814.33
219.26
814.36
219.27
+33 B
+15 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 462.94
111.81
462.94
111.81
+0 B
+0 B
WebGPU 537.67
145.07
537.67
145.07
+0 B
+0 B
WebGPU Nodes 493.78
134.81
493.78
134.81
+0 B
+0 B

@Mugen87 Mugen87 merged commit 921284e into mrdoob:dev Oct 12, 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