aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/shaders/tex_external.frag
blob: 73909fe03a07cf32f6fd1ba0e1fdbf1e3103001f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#extension GL_OES_EGL_image_external : require

#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif

varying vec2 v_texcoord;
uniform samplerExternalOES texture0;
uniform float alpha;

void main() {
	gl_FragColor = texture2D(texture0, v_texcoord) * alpha;
}