Hello,
Vertex shader:
=====================================
#version 120
attribute mat3x4 vTransform;
void main()
{
vec4 position = gl_Vertex;
position.xyz = gl_Vertex * vTransform;
gl_Position = gl_ModelViewProjectionMatrix * position;
}
=====================================
Fragment shader:
=====================================
#version 120
uniform vec4[3] gradientData;
void main()
{
float gradient = clamp(dot(gl_FragCoord.xy - gradientData[0].xy, gradientData[0].zw), 0.0, 1.0);
gl_FragColor = mix(gradientData[1], gradientData[2], gradient);
}
=====================================
Result:
Unable to create program: Fragment shader(s) linked, vertex shader(s) failed to link.
Why? This works on any other graphics card I tried so far. Though, to be honest, the other graphics cards are NVIDIA cards.
I have catalyst 10.5
We are sorry that the non-square matrix could not be the attribute for the vertex shader. Thanks for pointing it out. We are planning to do it.
Frank
Frank,
thank you for letting me know what is the issue.
Do you know when the fix will be available? Catalyst 10.6?
Usually when a fix is finalized internally, it takes no more than 2-3 months to a public release since there is a lengthy QA process.
Frank
Frank,
do you have any news regarding this issue?
As of catalyst 10.7, the issue is still there.
The problem is fixed but is not published into the release driver. I think it should be ready in Cat 10.8 or Cat 10.9. Sorry for the inconvenience.