diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2018-01-02 10:31:29 +0100 |
---|---|---|
committer | Rainer Hochecker <fernetmenta@online.de> | 2018-01-02 10:33:32 +0100 |
commit | 7d460e737506abd3e9f41cbad980012ac5398170 (patch) | |
tree | f9a585d094d70fa130bea528c8912cfd6b68ea3c /system/shaders/GL | |
parent | 02230b9b298c071f534269f165077fba738628fe (diff) |
VideoPlayer: GL - lookup texture needs interpolation
Diffstat (limited to 'system/shaders/GL')
-rw-r--r-- | system/shaders/GL/4.0/gl_yuv2rgb_filter4.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/shaders/GL/4.0/gl_yuv2rgb_filter4.glsl b/system/shaders/GL/4.0/gl_yuv2rgb_filter4.glsl index 0139d571b8..814814549b 100644 --- a/system/shaders/GL/4.0/gl_yuv2rgb_filter4.glsl +++ b/system/shaders/GL/4.0/gl_yuv2rgb_filter4.glsl @@ -61,6 +61,8 @@ float filter_0(sampler2D sampler, vec2 coord) vec4 linetaps = texture(m_kernelTex, 1.0 - f.x); vec4 coltaps = texture(m_kernelTex, 1.0 - f.y); + linetaps /= linetaps.r + linetaps.g + linetaps.b + linetaps.a; + columntaps /= columntaps.r + columntaps.g + columntaps.b + columntaps.a; mat4 conv; conv[0] = linetaps * coltaps.x; conv[1] = linetaps * coltaps.y; |