mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- don't let the light go completely black with software-emulated lighting.
This commit is contained in:
parent
bdb7594e60
commit
3334b28a02
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ float R_DoomLightingEquation(float light, float dist)
|
|||
/* L in the range 0 to 63 */
|
||||
float L = light * 63.0/31.0;
|
||||
|
||||
float min_L = clamp(36.0/31.0 - L, 0.0, 1.0);
|
||||
float min_L = clamp(36.0/31.0 - L, 0.03, 1.0);
|
||||
|
||||
// Fix objects getting totally black when close.
|
||||
if (dist < 0.0001)
|
||||
|
|
Loading…
Reference in a new issue