Software: krangle directional lighting in 3P/4P splitscreen
This commit is contained in:
parent
04744338a6
commit
591a909eea
1 changed files with 8 additions and 0 deletions
|
|
@ -2310,6 +2310,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…
Reference in a new issue