Skip to content

Commit

Permalink
Update cVideoProcessing.fxh
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Mar 28, 2024
1 parent d1ea99f commit 9c3d789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shaders/shared/cVideoProcessing.fxh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
const int Significand = exp2(SignificandBits);

const float MaxExponent = (Exponent - exp2(1)) + Bias;
const float MaxSignificand = 1.0 + float((Significand - 1.0) / Significand);
const float MaxSignificand = 1.0 + (((float)Significand - 1.0) / (float)Significand);

return pow(-1, SignBit) * exp2(MaxExponent) * MaxSignificand;
}
Expand Down

0 comments on commit 9c3d789

Please sign in to comment.