mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 16:46:28 +00:00
[egl] simplify yuv to rgb shader
This commit is contained in:
parent
b5a47cae25
commit
c0c63fd93b
@ -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;\
|
|
||||||
}\
|
}\
|
||||||
";
|
";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user