1 Reply Latest reply on Dec 1, 2009 9:27 AM by avk

    Why does this simple shader not work?

    riruilo

      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