From 1b3f692637d53879ef521795669c8e179a44ca76 Mon Sep 17 00:00:00 2001 From: silas <s.developer@4-dc.de> Date: Sun, 6 Jun 2021 11:38:08 +0200 Subject: [PATCH] Started fixing ESSL errors in YUV -> RGB conversion --- AVQt/textureES.fsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AVQt/textureES.fsh b/AVQt/textureES.fsh index afafe9e..fb53f0b 100644 --- a/AVQt/textureES.fsh +++ b/AVQt/textureES.fsh @@ -34,7 +34,7 @@ void main() { finalColor = vec4(rgb, 1.0f); } else if (inputFormat == 2) { // YUV420P mediump vec3 yuv; - yuv.x = texture(textureY, newTexCoord.st).r; + yuv.x = texture(textureY, newTexCoord.st).r * 4; // yuv.x = texture(textureY, newTexCoord.st).r - 0.0625; yuv.y = texture(textureU, newTexCoord.st).r - 0.5; yuv.z = texture(textureV, newTexCoord.st).r - 0.5; -- GitLab