[Interest] [Qt3D] Wrong value passed to the shader when using a QMatrix value
Xavier Bigand
flamaros.xavier at gmail.com
Mon Oct 3 15:06:36 CEST 2016
Hi,
I am trying to pass a QMatrix object to my shader, but instead of receiving
an identity matrix all field are null.
Here is my parameter declaration :
mTexCoordTransform(new
Qt3DRender::QParameter(QStringLiteral("u_texCoordTransform"),
QMatrix()))
And here my uniform declaration in the shader :
uniform highp mat3 u_texCoordTransform;
Is it a bug or is there a something wrong with my uniform declaration?
--
Xavier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161003/e868c956/attachment.html>
More information about the Interest
mailing list