Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Bad shader result in a custom QQuickItem
seyed last edited by
Open Scene Graph - OpenGl under QML and Scene Graph - Graph sample projects and try set scale 0.5 to the custom QQuickItems.
This is results:
You can see bad result.
What is the problem?! Why this behaviour?!
Is there any bug on uv mapping?
timday last edited by
@seyed As I understand things, you need to get hold of the item's transform and do whatever your rendering needs to do with it for it to have effect... see https://stackoverflow.com/questions/28535528/how-can-i-get-transform-matrix-for-qquickitem . (Similarly, nothing will implement the opacity property for you... you have to bring it into your OpenGL code and use it in your fragment shader.)