X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fchromakey%2Fchromakey.C;h=fe52fec66e0601302ada2b326646100ddab20857;hb=a6369311556cc1e1877142181d8606e4f68aa803;hp=7314037196d2506ba36e088f7c4a8a4eabfda175;hpb=af44bff549c39ac8bb6e42a791e7a211e1013526;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/chromakey/chromakey.C b/cinelerra-5.1/plugins/chromakey/chromakey.C index 73140371..fe52fec6 100644 --- a/cinelerra-5.1/plugins/chromakey/chromakey.C +++ b/cinelerra-5.1/plugins/chromakey/chromakey.C @@ -687,11 +687,11 @@ int ChromaKey::handle_opengl() "}\n"; static const char *get_rgbvalue_frag = - "uniform mat3 rgb_to_yuv_matrix;\n" + "uniform vec3 rgb_to_y_vector;\n" "uniform float yminf;\n" "float get_value(vec4 color)\n" "{\n" - " return dot(color.rgb, rgb_to_yuv_matrix[0]) + yminf;\n" + " return dot(color.rgb, rgb_to_y_vector) + yminf;\n" "}\n"; static const char *value_frag = @@ -784,7 +784,7 @@ SET_TRACE glUniform3f(glGetUniformLocation(shader, "key"), (float)y_key / 0xff, (float)u_key / 0xff, (float)v_key / 0xff); if(config.use_value) - BC_GL_RGB_TO_YUV(shader); + BC_GL_RGB_TO_Y(shader); } SET_TRACE