aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/shaders.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-20 13:16:30 -0400
committerGitHub <noreply@github.com>2018-03-20 13:16:30 -0400
commitff2e08aa7481517d0bd4379ff0d0b51098f72064 (patch)
treef375ea1d89698d18615584460fa2b1c0e29ebd85 /render/gles2/shaders.c
parent453516a6214bd8f6548db932139a8ed116eb652e (diff)
parent2d01663b2559c6d6a121c18b9496248dce8ad1a2 (diff)
Merge pull request #736 from agx/gles2-tex-target
Gles2 tex target
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);"
"}";