mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Software: krangle directional lighting in 3P/4P splitscreen
This commit is contained in:
parent
1da7a5c1da
commit
368bc1f634
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)
|
||||
: 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
|
||||
extralight = FixedMul(extralight, std::min(std::max(0, lightnum), LIGHTLEVELS - 1) * FRACUNIT / (LIGHTLEVELS - 1));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue