diff options
Diffstat (limited to 'src/main/java/makamys')
-rw-r--r-- | src/main/java/makamys/lodmod/LODMod.java | 3 | ||||
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/LODRenderer.java | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/makamys/lodmod/LODMod.java b/src/main/java/makamys/lodmod/LODMod.java index ceed97d..0bf46d7 100644 --- a/src/main/java/makamys/lodmod/LODMod.java +++ b/src/main/java/makamys/lodmod/LODMod.java @@ -52,6 +52,7 @@ public class LODMod public static List<Class> blockClassBlacklist; public static double fogStart; public static double fogEnd; + public static double farPlaneDistanceMultiplier; public static float maxSimpleMeshHeight; public static boolean forceVanillaBiomeTemperature; @@ -84,6 +85,8 @@ public class LODMod .collect(Collectors.toList()); fogStart = config.get("Fog", "fogStart", "0.4").getDouble(); fogEnd = config.get("Fog", "fogEnd", "0.8").getDouble(); + farPlaneDistanceMultiplier = config.get("Fog", "farPlaneDistanceMultiplier", "1.0").getDouble(); + debugEnabled = config.get("Debug", "enabled", false).getBoolean(); maxSimpleMeshHeight = (float)config.get("Debug", "maxSimpleMeshHeight", 1000.0).getDouble(); diff --git a/src/main/java/makamys/lodmod/renderer/LODRenderer.java b/src/main/java/makamys/lodmod/renderer/LODRenderer.java index e3cb045..6f4f6af 100644 --- a/src/main/java/makamys/lodmod/renderer/LODRenderer.java +++ b/src/main/java/makamys/lodmod/renderer/LODRenderer.java @@ -209,8 +209,8 @@ public class LODRenderer { } } - public int getFarPlaneDistanceMultiplier() { - return renderRange / 12; + public float getFarPlaneDistanceMultiplier() { + return renderRange / 12 * (float)LODMod.farPlaneDistanceMultiplier; } public void afterSetupFog(int mode, float alpha, float farPlaneDistance) { |