- always enforce a minimum distance for fog when fogmode is set to standard. without this, it was possible for the GPU to error out and stop rendering pixels for certain screen blocks

# Conflicts:
#	wadsrc/static/shaders/glsl/main.fp
This commit is contained in:
Rachael Alexanderson 2018-10-09 04:38:18 -04:00 committed by drfrag666
parent 1b97ba198b
commit 787638ff5f

View file

@ -430,7 +430,7 @@ vec3 AmbientOcclusionColor()
//
if (uFogEnabled == -1)
{
fogdist = pixelpos.w;
fogdist = max(16.0, pixelpos.w);
}
else
{
@ -472,7 +472,7 @@ void main()
{
if (uFogEnabled == 1 || uFogEnabled == -1)
{
fogdist = pixelpos.w;
fogdist = max(16.0, pixelpos.w);
}
else
{