Hack: we have data from debayer -- square -- but yuv uses block of

four pixels -- YUYV.
This commit is contained in:
Pavel Machek
2024-05-06 22:11:42 +02:00
parent 875cd8dfcd
commit c9dceb170b

View File

@@ -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);