old-Testgame/shaders/triangle.f.glsl

15 lines
322 B
Text
Raw Permalink Normal View History

2016-08-28 11:39:13 +00:00
#ifdef GL_ES
# ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
# else
precision mediump float;
# endif
#endif
2016-08-28 10:20:52 +00:00
varying vec3 f_color;
2016-08-28 12:55:35 +00:00
varying vec3 f_coord3d;
2016-08-28 09:31:10 +00:00
void main(void) {
2016-08-28 10:20:52 +00:00
gl_FragColor[0] = f_color[0];
gl_FragColor[1] = f_color[1];
gl_FragColor[2] = f_color[2];
2016-08-28 12:55:35 +00:00
gl_FragColor[3] = f_coord3d.y+1;
2016-08-28 09:31:10 +00:00
}