mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
Revert "- eliminate an unexpected slow path in the fragment shader."
This reverts commit cd5aa65fda
.
This does not work as expected, needs more investigation.
This commit is contained in:
parent
cd5aa65fda
commit
39513cf7ae
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ vec4 getLightColor(Material material, float fogdist, float fogfactor)
|
||||||
{
|
{
|
||||||
vec4 color = vColor;
|
vec4 color = vColor;
|
||||||
|
|
||||||
if ((uPalLightLevels >> 16) >= 5) // gl_lightmode >= 5 are software lighting modes.
|
if (uLightLevel >= 0.0)
|
||||||
{
|
{
|
||||||
float newlightlevel = 1.0 - R_DoomLightingEquation(uLightLevel);
|
float newlightlevel = 1.0 - R_DoomLightingEquation(uLightLevel);
|
||||||
color.rgb *= newlightlevel;
|
color.rgb *= newlightlevel;
|
||||||
|
|
Loading…
Reference in a new issue