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

WebGLUniformsGroups: Correct 3x3 to 3x4 Matrix Conversion in Uniform Buffer Object #27284

Merged
merged 4 commits into from
Nov 30, 2023

Conversation

RenaudRohlinger
Copy link
Collaborator

Resolved an issue in the conversion of 3x3 matrices to 3x4 matrices in WebGL2 UBO handling.
The previous implementation incorrectly duplicated the first element of the 3x3 matrix into the fourth element of the 3x4 matrix.
This has been corrected by assigning a value of 0 to the fourth element, aligning with standard matrix conversion practices.
It prevents potential rendering issues and ensures that the shaders receiving this data work with the correct matrix format.

Copy link

github-actions bot commented Nov 30, 2023

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
668.8 kB (166 kB) 668.8 kB (166 kB) +0 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
449.8 kB (109 kB) 449.8 kB (109 kB) +0 B
@Mugen87 Mugen87 merged commit 485487e into mrdoob:dev Nov 30, 2023
10 of 11 checks passed
@Mugen87 Mugen87 added this to the r160 milestone Nov 30, 2023
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
…Buffer Object (mrdoob#27284)

* fix matrix 3x4 conversion

* fix matrix 3x4 conversion

* assign 0 to 7 and 11

* Update WebGLUniformsGroups.js

---------

Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants