Description
CustomMaterial shader fails to compile if there are any uniforms used in shaders. The conversion of CustomMaterial's properties to uniforms fails, leading in errors about undefined variables in shaders.
This worked until recently. Currently it seems that all uniforms detect as QVariant type instead of their actual type in QQuick3DCustomMaterial::updateSpatialNode.
The material works in preview.
Attachments
For Gerrit Dashboard: QDS-2637 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
310856,4 | Do not sync renderer until the View3D component is complete | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
310857,2 | Fix issue of generating uniforms for custom materials and effects | 5.15 | qt/qtquick3d | Status: MERGED | +2 | 0 |
311190,2 | Do not sync renderer until the View3D component is complete | 5.15 | qt/qtquick3d | Status: MERGED | +2 | 0 |
311195,2 | Do not sync renderer until the View3D component is complete | 5.15.1 | qt/qtquick3d | Status: MERGED | +2 | 0 |
311197,2 | Fix issue of generating uniforms for custom materials and effects | 5.15.1 | qt/qtquick3d | Status: MERGED | +2 | 0 |
320723,4 | Fix issue of generating uniforms for custom materials and effects | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |