Skip to content

Commit

Permalink
Document Right Hand Side
Browse files Browse the repository at this point in the history
  • Loading branch information
brimson committed Jul 9, 2022
1 parent 04cbafd commit f4b4024
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions shaders/cMotionBlur.fx
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ namespace OpticalFlowLK
T[2] = tex2D(Sample_Common_1_A, TexCoord.xy).x - tex2D(Sample_Common_1_C, TexCoord.xy).x;
T[3] = tex2D(Sample_Common_1_A, TexCoord.zy).x - tex2D(Sample_Common_1_C, TexCoord.zy).x;

// B.x = IxIt (Q1); B.y = IyIt (Q2)
float2 B = 0.0;
B += (S[0] * T[0]);
B += (S[1] * T[1]);
Expand Down
1 change: 1 addition & 0 deletions shaders/cOpticalFlowLK.fx
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ namespace OpticalFlowLK
T[2] = tex2D(Sample_Common_1_A, TexCoord.xy).x - tex2D(Sample_Common_1_C, TexCoord.xy).x;
T[3] = tex2D(Sample_Common_1_A, TexCoord.zy).x - tex2D(Sample_Common_1_C, TexCoord.zy).x;

// B.x = IxIt (Q1); B.y = IyIt (Q2)
float2 B = 0.0;
B += (S[0] * T[0]);
B += (S[1] * T[1]);
Expand Down

0 comments on commit f4b4024

Please sign in to comment.