Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.6.0 Alpha
-
None
Description
QglTF generates shaders with varying names that cause duplicate definitions when loaded with glTFLoader. The loader renames attributes to be automatically usable, so varying or uniform names cannot be the same in the generated shaders.
Forbidden names are:
- position
- normal
- uv
- normalMatrix
- modelViewMatrix
- projectionMatrix
- skinWeight
- skinIndex
For varying/uniform, add something to the name (like normal -> vNormal).
Attachments
For Gerrit Dashboard: QTBUG-49343 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
140553,2 | qgltf: rename shader attributes/varyings | 5.6 | qt/qt3d | Status: ABANDONED | +2 | 0 |
140648,2 | Rename varyings that clash with three.js' glTFLoader | 5.6 | qt/qt3d | Status: MERGED | +2 | 0 |
140711,8 | Doc: Language/spelling review Qt Scxml doc | dev | qt/qtscxml | Status: MERGED | -2 | 0 |