diff options
author | wm4 <wm4@nowhere> | 2013-09-19 16:55:56 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-19 17:03:03 +0200 |
commit | 93feffad15fe68dc97278df9e6726135e31b6474 (patch) | |
tree | 7a487a30eedd5064bc09e7c3801d8db738867a84 /video/out/gl_video_shaders.glsl | |
parent | 69e272dad707aae1ae99dabdf45bb82d3bf7a905 (diff) | |
download | mpv-93feffad15fe68dc97278df9e6726135e31b6474.tar.bz2 mpv-93feffad15fe68dc97278df9e6726135e31b6474.tar.xz |
vo_opengl: blend alpha components by default
Improves display of images and video with alpha channel, especially if
the transparent regions contain (supposed to be invisible) garbage
color values.
Diffstat (limited to 'video/out/gl_video_shaders.glsl')
-rw-r--r-- | video/out/gl_video_shaders.glsl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gl_video_shaders.glsl b/video/out/gl_video_shaders.glsl index 8ca6739bf4..b0df20b544 100644 --- a/video/out/gl_video_shaders.glsl +++ b/video/out/gl_video_shaders.glsl @@ -387,6 +387,9 @@ void main() { color = floor(color * dither_quantization + dither_value + dither_center) / dither_quantization; #endif +#ifdef USE_ALPHA_BLEND + color = color * alpha; +#endif #ifdef USE_ALPHA out_color = vec4(color, alpha); #else |