Skip to content

WebGPURenderer: Prevent translation of skybox.#32526

Merged
sunag merged 2 commits into
mrdoob:devfrom
Mugen87:dev3
Dec 10, 2025
Merged

WebGPURenderer: Prevent translation of skybox.#32526
sunag merged 2 commits into
mrdoob:devfrom
Mugen87:dev3

Conversation

@Mugen87

@Mugen87 Mugen87 commented Dec 10, 2025

Copy link
Copy Markdown
Collaborator

Fixed #32418.

Description

#32418 shows that the scene's background skybox currently moves with the camera which isn't correct. That can be fixed by changing how the vertices of the skybox are computed. I've added a comment with the implementation details (it's just a minor change).

@Mugen87 Mugen87 added this to the r182 milestone Dec 10, 2025
@github-actions

github-actions Bot commented Dec 10, 2025

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 355.12
84.44
355.12
84.44
+0 B
+0 B
WebGPU 616.43
171.09
616.35
171.06
-79 B
-23 B
WebGPU Nodes 615.03
170.83
614.96
170.8
-79 B
-25 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 487.46
119.37
487.46
119.37
+0 B
+0 B
WebGPU 687.34
186.69
687.26
186.66
-79 B
-20 B
WebGPU Nodes 637.18
173.9
637.11
173.88
-79 B
-20 B

@Mugen87 Mugen87 requested a review from sunag December 10, 2025 09:35
@sunag sunag merged commit af2ccae into mrdoob:dev Dec 10, 2025
10 checks passed
Mugen87 added a commit that referenced this pull request Dec 12, 2025
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.

WebGPU background has an unnecessary precision issue

2 participants