From 97c8d06e3312e09e7a8ebfd267b6263cf32b6484 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 27 Sep 2024 19:20:57 +0200 Subject: [PATCH] Software: krangle directional lighting in 3P/4P splitscreen --- src/r_things.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/r_things.c b/src/r_things.c index a2cb07c25..7a86f936b 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1625,6 +1625,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 (splitscreen > 1) + { + extralight *= 2; + } + // Less change in contrast in dark sectors extralight = FixedMul(extralight, min(max(0, lightnum), LIGHTLEVELS - 1) * FRACUNIT / (LIGHTLEVELS - 1));