obs-filters: Fix swapped chroma distance values

This commit is contained in:
jpark37 2021-06-02 00:35:44 -07:00 committed by Jim
parent c6937eb559
commit 08c5f02010

View File

@ -43,7 +43,7 @@ float GetChromaDist(float3 rgb)
{
float cb = dot(rgb.rgb, cb_v4.xyz) + cb_v4.w;
float cr = dot(rgb.rgb, cr_v4.xyz) + cr_v4.w;
return distance(chroma_key, float2(cr, cb));
return distance(chroma_key, float2(cb, cr));
}
float GetNonlinearChannel(float u)