Details
Description
The generated fragment shader for a custom materials contains unused output variables which causes errors during compilation.
//Shader name
custom material pipeline- qrc:/shaders/globe.frag;hasLighting=true;lightCount=0;specularModel=Default;;diffuseMap={;;;;;};diffuseMap_swizzle={;;;;};emissiveMap={;;;;;};emissiveMap_swizzle={;;;;};specularMap={;;;;;};specularMap_swizzle={;;;;};opacityMap={;;;;;};opacityMap_swizzle={;;;;};bumpMap={;;;;;};bumpMap_swizzle={;;;;};specularAmountMap={;;;;;};specularAmountMap_swizzle={;;;;};normalMap={;;;;;};normalMap_swizzle={;;;;};displacementMap={;;;;;};displacementMap_swizzle={;;;;};translucencyMap={;;;;;};translucencyMap_swizzle={;;;;};lightmapIndirect={;;;;;};lightmapIndirect_swizzle={;;;;};lightmapRadiosity={;;;;;};lightmapRadiosity_swizzle={;;;;};lightmapShadow={;;;;;};lightmapShadow_swizzle={;;;;};roughnessMap={;;;;;};roughnessMap_swizzle={;;;;};baseColorMap={;;;;;};baseColorMap_swizzle={;;;;};metalnessMap={;;;;;};metalnessMap_swizzle={;;;;};occlusionMap={;;;;;};occlusionMap_swizzle={;;;;};tessellationMode={noTessellation=true;;;};alphaMode=Opaque;
The issues is the same as in https://bugreports.qt.io/browse/QT3DS-3173.
Attachments
Issue Links
- relates to
-
QT3DS-3173 Generated shader code violates the ES 3.2 specification
-
- Closed
-
For Gerrit Dashboard: QTBUG-81070 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
288749,2 | Configure out fragOutput when it is not needed | 5.15 | qt/qtquick3d | Status: MERGED | +2 | 0 |
290810,2 | Move feature definitions at the top of the shader | 5.15 | qt/qtquick3d | Status: MERGED | +2 | 0 |