Browse Source

Hack: we have data from debayer -- square -- but yuv uses block of
four pixels -- YUYV.

Pavel Machek 10 months ago
parent
commit
c9dceb170b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      data/yuv.frag

+ 2 - 2
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);