bobvodka
09-22-2005, 11:20 AM
I've just notice that the new 5.9cat drivers from ATI now has the GL_ARB_draw_buffers extension present in its extension string.
Now, I hoped this ment that MRT would now work via GLSL, however its not looking hopefull, so I'm kinda asking for confirmation of this or for someone to point out what I might have done wrong when it comes to using this extension in GLSL.
Fragment shader code;
#version 110
#extension GL_ARB_draw_buffers : require
uniform sampler2D tex;
void main(void)
{
vec4 color = texture2D(tex,gl_TexCoord[0].st);
gl_FragData[0] = vec4(color.r, 0.0,0.0,1.0);
gl_FragData[1] = vec4(color.g,0.0,0.0,1.0);
gl_FragData[2] = vec4(color.b,0.0,0.0,1.0);
}
However, when I run I get the following compile log...
Link failed. All shader objects have not been successfully compiled. Validation
failed - link has not been called or link has failed.
ERROR: 0:2: '' : extension 'GL_ARB_draw_buffers' is not supported
ERROR: 1 compilation errors. No code generated.
Any ideas anyone?
or are we going to have to wait longer for MRT on ATI hardware via GLSL?
Now, I hoped this ment that MRT would now work via GLSL, however its not looking hopefull, so I'm kinda asking for confirmation of this or for someone to point out what I might have done wrong when it comes to using this extension in GLSL.
Fragment shader code;
#version 110
#extension GL_ARB_draw_buffers : require
uniform sampler2D tex;
void main(void)
{
vec4 color = texture2D(tex,gl_TexCoord[0].st);
gl_FragData[0] = vec4(color.r, 0.0,0.0,1.0);
gl_FragData[1] = vec4(color.g,0.0,0.0,1.0);
gl_FragData[2] = vec4(color.b,0.0,0.0,1.0);
}
However, when I run I get the following compile log...
Link failed. All shader objects have not been successfully compiled. Validation
failed - link has not been called or link has failed.
ERROR: 0:2: '' : extension 'GL_ARB_draw_buffers' is not supported
ERROR: 1 compilation errors. No code generated.
Any ideas anyone?
or are we going to have to wait longer for MRT on ATI hardware via GLSL?