riruilo

Why does this simple shader not work?

Discussion created by riruilo on Nov 30, 2009
Latest reply on Dec 1, 2009 by avk

Hi friends.

This simple shader does not work on my ATI HD 3870 but it works on my frined's geforce 6200 (older)

[code]

void main() {
if (gl_FragCoord.y>250.0) {
gl_FragColor=vec4(1.0,0.0,1.0,1.0);
} else {
gl_FragColor=gl_Color;
}
}

[/code]

 

 

See pictures here:

http://www.gamedev.net/community/forums/topic.asp?topic_id=554898

 

Thanks a lot

Outcomes