Improved fog distance scaling

This commit is contained in:
Pazaz 2022-04-27 03:38:30 -04:00
parent fec94fe629
commit f80d7cbb61
4 changed files with 5 additions and 4 deletions

View file

@ -176,7 +176,7 @@ public final class WaterMaterialRenderer implements MaterialRenderer {
local1.glCallList(this.anInt4440);
@Pc(12) float local12 = 2662.4001F;
local12 += (float) (Static254.anInt5559 - 128) * 0.5F;
float max = (float) GlobalConfig.VIEW_DISTANCE - 256.0f;
float max = (float) GlobalConfig.VIEW_DISTANCE - GlobalConfig.VIEW_FADE_DISTANCE;
if (local12 >= max) {
local12 = max - 1.0f;
}