mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Increase precision of smooth contrast
(cherry picked from commit 4c6664292e1f9b0d5c2ff34e28f05a8b63a4dd45)
This commit is contained in:
parent
23cb9a018d
commit
1871d01de6
1 changed files with 2 additions and 3 deletions
|
|
@ -1037,12 +1037,11 @@ static FUINT HWR_CalcWallLight(FUINT lightnum, fixed_t v1x, fixed_t v1y, fixed_t
|
||||||
|
|
||||||
if (cv_grfakecontrast.value == 2) // Smooth setting
|
if (cv_grfakecontrast.value == 2) // Smooth setting
|
||||||
{
|
{
|
||||||
extralight = -(contrast<<FRACBITS) +
|
extralight = (-(contrast<<FRACBITS) +
|
||||||
FixedDiv(AngleFixed(R_PointToAngle2(0, 0,
|
FixedDiv(AngleFixed(R_PointToAngle2(0, 0,
|
||||||
abs(v1x - v2x),
|
abs(v1x - v2x),
|
||||||
abs(v1y - v2y))), 90<<FRACBITS)
|
abs(v1y - v2y))), 90<<FRACBITS)
|
||||||
* (contrast * 2);
|
* (contrast * 2)) >> FRACBITS;
|
||||||
extralight = FixedFloor(extralight + (FRACUNIT>>1)) >> FRACBITS;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue