Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.14, 5.15
-
None
-
53804f553d446c962764ba3365a8b390436fceb4 (qt/qtbase/5.15)
Description
In a uniform buffer a mat3 has 4 floats per column (or row, if row-major), even though only 3 is used and the 4th is ignored. So 12 floats altogether, not 9.
The OpenGL backend should take this into account when destructuring a uniform buffer and issuing individual glUniform* (e.g. glUniformMatrix3fv) calls. Otherwise shaders will work with invalid normal matrices (the typical mat3), in Qt Quick 3D for instance.
Attachments
Issue Links
- is required for
-
QTBUG-79219 Minimal proof of concept demo for Quick 3D on QRhi
- Closed