Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0.0
-
None
-
a7df91a12c50725abab9c0d18539d686615bb8b5 (qt/qtquick3d/dev) 8c4186812f0fd3acd389f53e874a59d69cc9af8b (qt/qtquick3d/6.1)
-
Qt Quick 3D - 2021 - Weeks 5/6
Description
Have two materials where the only difference is in the referenced Textures, where one uses indexUV 1, the other 0. This will not render as expected: both models will use the same UV set, either 0 or 1, depending which material gets processed first. This is because the materials are deemed identical and the shader code is reused, which is incorrect.
Model { source: "../shared/models/animal_with_lightmapuv1.mesh" scale: Qt.vector3d(50, 50, 50) eulerRotation.y: -80 x: -80 y: 100 materials: [ DefaultMaterial { diffuseMap: Texture { source: "../shared/maps/oulu_2.jpeg" } } ] } Model { property real modelScale: 100 source: "../shared/models/animal_with_lightmapuv1.mesh" scale: Qt.vector3d(50, 50, 50) eulerRotation.y: -80 x: 80 y: -70 materials: [ DefaultMaterial { diffuseMap: Texture { source: "../shared/maps/oulu_2.jpeg" indexUV: 1 } } ] }