From 0a100c6280d35aecc8e65fecc8af9b40ae44ae2e Mon Sep 17 00:00:00 2001 From: IntegratedQuantum Date: Sat, 30 Apr 2022 10:49:15 +0200 Subject: [PATCH] Fix fog color. --- src/cubyz/rendering/MainRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cubyz/rendering/MainRenderer.java b/src/cubyz/rendering/MainRenderer.java index 501f6924..94ed2f7e 100644 --- a/src/cubyz/rendering/MainRenderer.java +++ b/src/cubyz/rendering/MainRenderer.java @@ -219,10 +219,11 @@ public void render() { if (ambient.x < 0.1f) ambient.x = 0.1f; if (ambient.y < 0.1f) ambient.y = 0.1f; if (ambient.z < 0.1f) ambient.z = 0.1f; - clearColor = Cubyz.world.getClearColor().mul(0.25f, new Vector4f()); + clearColor = Cubyz.world.getClearColor(); Cubyz.fog.setColor(clearColor); Cubyz.fog.setActive(ClientSettings.FOG_COEFFICIENT != 0); Cubyz.fog.setDensity(1 / (ClientSettings.EFFECTIVE_RENDER_DISTANCE*ClientSettings.FOG_COEFFICIENT)); + clearColor = clearColor.mul(0.25f, new Vector4f()); light.setColor(clearColor);