old-Testgame/shaders/triangle.f.glsl

6 lines
147 B
Text
Raw Normal View History

2016-08-28 09:31:10 +00:00
void main(void) {
gl_FragColor[0] = 1.0;
gl_FragColor[1] = 1.0;
gl_FragColor[2] = 0.0;
gl_FragColor[3] = floor(mod(gl_FragCoord.y, 3.0));
2016-08-28 09:31:10 +00:00
}