Description
Hello,
I face an issue rendering a mesh with a CustomMaterial with an Item as texture.
As you can see in the project I attached,
- when there is only the Image visible in the Item, and this Image has been animated, then the texture (in CustomMaterial) is rendered
- once the Image is not anymore the only one displayed in the Item, the texture is replaced by a random label (visible in the screenshot attached)
Moreover, I cannot understand why the texture, when it is displayed, is just displayed even if I did comment the binding of my CustomMaterial's itemSource property
(line 52 in main.qml, tagged "[ — HERE — ]")
Can you help me to understand if there is an issue in QtQuick3D or not.
I did try a lot of things to try to fix my issue
(- changing the Texture properties,
- using a ShaderEffectSource and a ShaderEffect as Texture.sourceItem,
- changing ShaderInfo.version (seems ignored by the way)
- trying some ShaderInfo.shaderKey
- using texture2D() instead of texture() in .frag
- and lots of other things)
I really need to display an Item in my real project, I have a lot of different items, images and texts inside
Best regards,
Erwan DUCHAMPS
Stellantis