Skip to content

Commit

Permalink
Tweak motion blur scale
Browse files Browse the repository at this point in the history
  • Loading branch information
brimson committed Jul 22, 2022
1 parent b91a0bb commit a48d2d1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions shaders/cMotionBlur.fx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace MotionBlur
OPTION(float, _MipBias, "slider", "Optical flow", "Optical flow mipmap bias", 0.0, 6.0, 0.5)
OPTION(float, _BlendFactor, "slider", "Optical flow", "Temporal blending factor", 0.0, 0.9, 0.2)

OPTION(float, _Scale, "slider", "Main", "Blur scale", 0.0, 1.0, 0.5)
OPTION(float, _Scale, "slider", "Main", "Blur scale", 0.0, 2.0, 1.0)

OPTION(bool, _FrameRateScaling, "radio", "Other", "Enable frame-rate scaling", 0.0, 1.0, false)
OPTION(float, _TargetFrameRate, "drag", "Other", "Target frame-rate", 0.0, 144.0, 60.0)
Expand Down Expand Up @@ -391,9 +391,6 @@ namespace MotionBlur
B += (S[2] * T[2]);
B += (S[3] * T[3]);

// Ensure Lucas-Kanade's determinant is non-zero
A.xy = max(A.xy, FP16_SMALLEST_SUBNORMAL);

// Create -IxIy (A12) for A^-1 and its determinant
A.z = A.z * (-1.0);

Expand Down
3 changes: 0 additions & 3 deletions shaders/cOpticalFlowLK.fx
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,6 @@ namespace OpticalFlowLK
B += (S[2] * T[2]);
B += (S[3] * T[3]);

// Ensure Lucas-Kanade's determinant is non-zero
A.xy = max(A.xy, FP16_SMALLEST_SUBNORMAL);

// Create -IxIy (A12) for A^-1 and its determinant
A.z = A.z * (-1.0);

Expand Down
3 changes: 0 additions & 3 deletions shaders/kDatamosh.fx
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,6 @@ namespace Datamosh
B += (S[2] * T[2]);
B += (S[3] * T[3]);

// Ensure Lucas-Kanade's determinant is non-zero
A.xy = max(A.xy, FP16_SMALLEST_SUBNORMAL);

// Create -IxIy (A12) for A^-1 and its determinant
A.z = A.z * (-1.0);

Expand Down

0 comments on commit a48d2d1

Please sign in to comment.