Skip to content

Commit

Permalink
Implement standard solver again
Browse files Browse the repository at this point in the history
  • Loading branch information
brimson committed Jun 5, 2022
1 parent f33273e commit 0f3678f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shaders/cMotionBlur.fx
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ namespace Motion_Blur
// [IxIy Iy^2+A] [V] = -[IyIt]
UVAverage.xy = (AreaGrad.xx * AreaAvg[0]) + (AreaGrad.yy * AreaAvg[1]) + (AreaGrad.zz * AreaAvg[2]) + (AreaGrad.ww * AreaAvg[3]);
UVAverage.xy = UVAverage.xy * Alpha;
OpticalFlow.xy = lerp(CenterAverage.xy, Aii.xy * (UVAverage.xy - (Aij * CenterAverage.yx) - Bi.xy), 2.0 / 3.0);
OpticalFlow.xy = Aii.xy * (UVAverage.xy - (Aij * CenterAverage.yx) - Bi.xy);
}

#define LEVEL_PS(NAME, SAMPLER, LEVEL) \
Expand Down
2 changes: 1 addition & 1 deletion shaders/cOpticalFlow.fx
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ namespace OpticalFlow
// [IxIy Iy^2+A] [V] = -[IyIt]
UVAverage.xy = (AreaGrad.xx * AreaAvg[0]) + (AreaGrad.yy * AreaAvg[1]) + (AreaGrad.zz * AreaAvg[2]) + (AreaGrad.ww * AreaAvg[3]);
UVAverage.xy = UVAverage.xy * Alpha;
OpticalFlow.xy = lerp(CenterAverage.xy, Aii.xy * (UVAverage.xy - (Aij * CenterAverage.yx) - Bi.xy), 2.0 / 3.0);
OpticalFlow.xy = Aii.xy * (UVAverage.xy - (Aij * CenterAverage.yx) - Bi.xy);
}

#define LEVEL_PS(NAME, SAMPLER, LEVEL) \
Expand Down
2 changes: 1 addition & 1 deletion shaders/kDatamosh.fx
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ namespace Datamosh
// [IxIy Iy^2+A] [V] = -[IyIt]
UVAverage.xy = (AreaGrad.xx * AreaAvg[0]) + (AreaGrad.yy * AreaAvg[1]) + (AreaGrad.zz * AreaAvg[2]) + (AreaGrad.ww * AreaAvg[3]);
UVAverage.xy = UVAverage.xy * Alpha;
OpticalFlow.xy = lerp(CenterAverage.xy, Aii.xy * (UVAverage.xy - (Aij * CenterAverage.yx) - Bi.xy), 2.0 / 3.0);
OpticalFlow.xy = Aii.xy * (UVAverage.xy - (Aij * CenterAverage.yx) - Bi.xy);
}

#define LEVEL_PS(NAME, SAMPLER, LEVEL) \
Expand Down

0 comments on commit 0f3678f

Please sign in to comment.