Software: krangle directional lighting in 3P/4P splitscreen
This commit is contained in:
1 parent
9747d0bb20
commit
97c8d06e33
1 file changed
+8
@@ -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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user