diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-20 13:16:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-20 13:16:30 -0400 |
commit | ff2e08aa7481517d0bd4379ff0d0b51098f72064 (patch) | |
tree | f375ea1d89698d18615584460fa2b1c0e29ebd85 /render/gles2/shaders.c | |
parent | 453516a6214bd8f6548db932139a8ed116eb652e (diff) | |
parent | 2d01663b2559c6d6a121c18b9496248dce8ad1a2 (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.c | 3 |
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);" "}"; |