Replies: 2 comments
-
[11, 12, 13, X,
21, 22, 23, X,
21, 22, 23, X]
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your help, and interesting! The issue doesn't occur with a 4x4 matrix. I think some extra information about odd UBO behaviours and tricky types (to avoid?) like mat3 would be a very useful addition to the deck.gl/luma.gl upgrade guide/docs. Somewhat unrelated, I also ran into the incorrect uniform order issue, then only later found the GPU Uniforms docs which mentions this behaviour. With this knowledge, the order requirement makes sense. But from an API/naive perspective - when defining an object ( |
Beta Was this translation helpful? Give feedback.
-
Description
In the midst of updating to v9 Deck, I found
mat3
uniforms seem to behave incorrectly (within a UBO).Previously, a
mat3x3[1][1]
index would access its 'centre' value. But now it seems to point tomat3x3[1][2]
instead?Flavors
Expected Behavior
mat3x3[1][1] access points to 'centre' value
Steps to Reproduce
Repro here: https://codepen.io/mttrx/pen/ZEgmWWK
Environment
Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions