[egl] simplify yuv to rgb shader

This commit is contained in:
Geoffrey McRae 2018-09-23 20:56:18 +10:00
parent b5a47cae25
commit c0c63fd93b

View File

@ -72,7 +72,7 @@ static const char egl_fragment_shader_yuv[] = "\
#version 300 es\n\ #version 300 es\n\
\ \
in highp vec2 uv;\ in highp vec2 uv;\
out highp vec3 color;\ out highp vec4 color;\
\ \
uniform sampler2D sampler1;\ uniform sampler2D sampler1;\
uniform sampler2D sampler2;\ uniform sampler2D sampler2;\
@ -93,11 +93,8 @@ void main()\
1.0, 1.772, 0.0 , -0.886,\ 1.0, 1.772, 0.0 , -0.886,\
1.0, 1.0 , 1.0 , 1.0\ 1.0, 1.0 , 1.0 , 1.0\
);\ );\
yuv = yuv * yuv_to_rgb;\
\ \
color.r = yuv.r;\ color = yuv * yuv_to_rgb;\
color.g = yuv.g;\
color.b = yuv.b;\
}\ }\
"; ";