the following simple fragment shader code fails, leaving me with an uninformative message in the log (ERROR: 0:1: 'gl_Color' : syntax error syntax error):
void main()
{
vec4 myOutputColor(gl_Color);
gl_FragColor = myOutputColor;
}
while the following one works:
void main()
{
glFragColor = gl_Color;
}
This boggles my mind, as in Lighthouse3D's tutorial gl_Color is said to be a vec4. Why can't I assign it to another vec4?