diff --git a/src/main/java/net/minecraftforge/client/model/pipeline/LightUtil.java b/src/main/java/net/minecraftforge/client/model/pipeline/LightUtil.java index 21bf325758..f46201d4d9 100644 --- a/src/main/java/net/minecraftforge/client/model/pipeline/LightUtil.java +++ b/src/main/java/net/minecraftforge/client/model/pipeline/LightUtil.java @@ -35,12 +35,9 @@ import java.util.concurrent.ConcurrentMap; public class LightUtil { - private static final float s2 = (float)Math.pow(2, .5); - public static float diffuseLight(float x, float y, float z) { - float y1 = y + 3 - 2 * s2; - return (x * x * 0.6f + (y1 * y1 * (3 + 2 * s2)) / 8 + z * z * 0.8f); + return x * x * 0.6f + y * y * ((3f + y) / 4f) + z * z * 0.8f; } public static float diffuseLight(EnumFacing side)