Skip to content

Commit

Permalink
Update cVideoProcessing.fxh
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed May 15, 2023
1 parent 6335ceb commit 83ff20a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions shaders/shared/cVideoProcessing.fxh
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,8 @@
float4 CBlock = SampleBlock(S1, TexData.MainTex.xy + Shift, TexData);
float NCC = GetNCC(PBlock, CBlock);

if (NCC > Minimum)
{
Vectors = Shift;
Minimum = NCC;
}
Vectors = (NCC > Minimum) ? Shift : Vectors;
Minimum = max(NCC, Minimum);
}
return Vectors;
}
Expand Down

0 comments on commit 83ff20a

Please sign in to comment.