summaryrefslogtreecommitdiffstats
path: root/glow/src/shader/common/image.frag
blob: 5e05abdf2ca2381641e2874012500974ad191631 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifdef GL_ES
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
#endif

uniform sampler2D tex;
in vec2 tex_pos;

#ifdef HIGHER_THAN_300
out vec4 fragColor;
#define gl_FragColor fragColor
#endif
#ifdef GL_ES
#define texture texture2D
#endif

void main() {
    gl_FragColor = texture(tex, tex_pos);
}