riruilo

Why does this simple shader not work?

Discussion created by riruilo on Dec 1, 2009

Hi friends.

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

My driver is 9-11_xp32_dd_ccc_wdm_enu.exe and driver date is 04/11/2009

[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