mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'fix-directional-lighting-4p' into 'master'
Software: krangle directional lighting in 3P/4P splitscreen See merge request KartKrew/Kart!2106
This commit is contained in:
commit
06d1d899bc
1 changed files with 8 additions and 0 deletions
|
|
@ -2363,6 +2363,14 @@ static void R_ProjectSprite(mobj_t *thing)
|
||||||
? interp.angle + (ang >= ANGLE_180 ? -ANGLE_90 : ANGLE_90)
|
? interp.angle + (ang >= ANGLE_180 ? -ANGLE_90 : ANGLE_90)
|
||||||
: R_PointToAngle(interp.x, interp.y));
|
: R_PointToAngle(interp.x, interp.y));
|
||||||
|
|
||||||
|
// Krangle contrast in 3P/4P because scalelight
|
||||||
|
// scales differently depending on the screen
|
||||||
|
// width (which is halved in 3P/4P).
|
||||||
|
if (r_splitscreen > 1)
|
||||||
|
{
|
||||||
|
extralight *= 2;
|
||||||
|
}
|
||||||
|
|
||||||
// Less change in contrast in dark sectors
|
// Less change in contrast in dark sectors
|
||||||
extralight = FixedMul(extralight, std::min(std::max(0, lightnum), LIGHTLEVELS - 1) * FRACUNIT / (LIGHTLEVELS - 1));
|
extralight = FixedMul(extralight, std::min(std::max(0, lightnum), LIGHTLEVELS - 1) * FRACUNIT / (LIGHTLEVELS - 1));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue