Expose QMatrix4x4 properties as mat4 uniforms in shaders
authorChris Adams <chris.adams@jollamobile.com>
Mon, 19 Nov 2012 08:36:09 +0000 (18:36 +1000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 22 Nov 2012 06:54:00 +0000 (07:54 +0100)
commit7f2cc816e549d704f238af9f5886905d9e2dec86
treefd0e0a9a9ca95e3860a1dccd530ad345ada2d9f7
parentfe3aac4a4e4f5ebdcbc13050b30d2d24d5451124
Expose QMatrix4x4 properties as mat4 uniforms in shaders

Previously, QMatrix4x4 properties were not exposed as uniforms in
shaders.  This commit adds conversion code for matrix 4x4 properties
so that they are automatically converted to mat4 uniforms.

Task-number: QTBUG-27952
Change-Id: I9b1de39fbbcb02743cf8c4e09b4d83c44f1dd438
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/quick/items/qquickshadereffectnode.cpp
tests/auto/quick/qquickshadereffect/tst_qquickshadereffect.cpp