From c9dceb170b2f49061808ee065d2778718bcbb95e Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 6 May 2024 22:11:42 +0200 Subject: [PATCH] Hack: we have data from debayer -- square -- but yuv uses block of four pixels -- YUYV. --- data/yuv.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/yuv.frag b/data/yuv.frag index d6fceb0..f7d7879 100644 --- a/data/yuv.frag +++ b/data/yuv.frag @@ -23,9 +23,9 @@ main() texture2D(texture, top_right_uv).r, texture2D(texture, bottom_left_uv).r, texture2D(texture, bottom_right_uv).r); - vec3 color = vec3(samples.x, samples.y, samples.z); + vec3 color = vec3(samples.z, samples.z, samples.z); - color *= color_matrix; + //color *= color_matrix; vec3 gamma_color = pow(color, vec3(inv_gamma)); gl_FragColor = vec4(gamma_color, 1);