aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/shaders.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/gles2/shaders.c')
-rw-r--r--render/gles2/shaders.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/gles2/shaders.c b/render/gles2/shaders.c
index 2e9386d0..30e12e4c 100644
--- a/render/gles2/shaders.c
+++ b/render/gles2/shaders.c
@@ -80,8 +80,9 @@ const GLchar fragment_src_external[] =
"precision mediump float;"
"varying vec2 v_texcoord;"
"uniform samplerExternalOES texture0;"
+"uniform float alpha;"
""
"void main() {"
" vec4 col = texture2D(texture0, v_texcoord);"
-" gl_FragColor = vec4(col.rgb, col.a);"
+" gl_FragColor = vec4(col.rgb, col.a * alpha);"
"}";