aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/shaders/tex_external.frag
diff options
context:
space:
mode:
Diffstat (limited to 'render/gles2/shaders/tex_external.frag')
-rw-r--r--render/gles2/shaders/tex_external.frag10
1 files changed, 10 insertions, 0 deletions
diff --git a/render/gles2/shaders/tex_external.frag b/render/gles2/shaders/tex_external.frag
new file mode 100644
index 00000000..05eac503
--- /dev/null
+++ b/render/gles2/shaders/tex_external.frag
@@ -0,0 +1,10 @@
+#extension GL_OES_EGL_image_external : require
+
+precision mediump float;
+varying vec2 v_texcoord;
+uniform samplerExternalOES texture0;
+uniform float alpha;
+
+void main() {
+ gl_FragColor = texture2D(texture0, v_texcoord) * alpha;
+}