mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- clamp the software light to never get brighter than the initial light level
This commit is contained in:
parent
38c8f0d585
commit
3b8b312fae
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ float R_DoomLightingEquation(float light)
|
||||||
lightscale = shade - vis;
|
lightscale = shade - vis;
|
||||||
|
|
||||||
// Result is the normalized colormap index (0 bright .. 1 dark)
|
// Result is the normalized colormap index (0 bright .. 1 dark)
|
||||||
return clamp(lightscale, 0.0, 31.0 / 32.0);
|
return clamp(lightscale, 1.0 - light, 31.0 / 32.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
Loading…
Reference in a new issue