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: Add mat2 uniform support #30368

Merged

Conversation

RenaudRohlinger
Copy link
Collaborator

@RenaudRohlinger RenaudRohlinger commented Jan 21, 2025

Related: #30364

Description

Following #30364, after adding mat2 support in TSL, this PR adds support for mat2 uniforms in the WebGPURenderer.

This contribution is funded by Utsubo

Copy link

github-actions bot commented Jan 21, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.25
78.28
336.25
78.28
+0 B
+0 B
WebGPU 505.84
140.49
506.14
140.5
+301 B
+16 B
WebGPU Nodes 505.31
140.38
505.61
140.4
+301 B
+18 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.25
112.13
465.25
112.13
+0 B
+0 B
WebGPU 579.87
157.17
580.18
157.21
+302 B
+45 B
WebGPU Nodes 535.26
146.73
535.56
146.78
+302 B
+58 B

@RenaudRohlinger RenaudRohlinger added this to the r173 milestone Jan 21, 2025
@RenaudRohlinger RenaudRohlinger merged commit 6f2a92d into mrdoob:dev Jan 21, 2025
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.

2 participants