From ff9d97ec925741f1dc48d9013aeeae2cdc8b21e4 Mon Sep 17 00:00:00 2001 From: silas <s.developer@4-dc.de> Date: Sun, 6 Jun 2021 11:39: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 fb53f0b..83a5021 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 * 4; + yuv.x = texture(textureY, newTexCoord.st).r * 4.0; // 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