I try to practice GLSL in gl_Vertex
this is my test program
in http://stmail.fju.edu.tw/~a8851034/glutglsl3_test.rar link
I use gl_Vertex to comuter the fragment color.
If the gl_Vertex 's y value is <0
to use one color, else another.
But I see the result the color is not clear seperate…but smooth…
WHY? I don’t understand…
thanks