diff options
-rw-r--r-- | src/qcam/assets/shader/YUV_2_planes.frag | 2 | ||||
-rw-r--r-- | src/qcam/assets/shader/YUV_3_planes.frag | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/qcam/assets/shader/YUV_2_planes.frag b/src/qcam/assets/shader/YUV_2_planes.frag index da8dbcc5..1d5d1206 100644 --- a/src/qcam/assets/shader/YUV_2_planes.frag +++ b/src/qcam/assets/shader/YUV_2_planes.frag @@ -36,7 +36,7 @@ void main(void) #error Invalid pattern #endif - vec3 rgb = yuv2rgb_matrix * (vec3(y, uv) - yuv2rgb_offset); + vec3 rgb = yuv2rgb_matrix * (yuv - yuv2rgb_offset); gl_FragColor = vec4(rgb, 1.0); } diff --git a/src/qcam/assets/shader/YUV_3_planes.frag b/src/qcam/assets/shader/YUV_3_planes.frag index e754129d..8f788e90 100644 --- a/src/qcam/assets/shader/YUV_3_planes.frag +++ b/src/qcam/assets/shader/YUV_3_planes.frag @@ -30,7 +30,7 @@ void main(void) yuv.y = texture2D(tex_u, textureOut).r; yuv.z = texture2D(tex_v, textureOut).r; - vec3 rgb = yuv2rgb_matrix * (vec3(y, uv) - yuv2rgb_offset); + vec3 rgb = yuv2rgb_matrix * (yuv - yuv2rgb_offset); gl_FragColor = vec4(rgb, 1.0); } |