diff --git a/core/assets/sprites/sprites.png b/core/assets/sprites/sprites.png index e82032f351..e3feb7f11e 100644 Binary files a/core/assets/sprites/sprites.png and b/core/assets/sprites/sprites.png differ diff --git a/core/src/io/anuke/mindustry/Vars.java b/core/src/io/anuke/mindustry/Vars.java index 2ad70174f5..fc824542b9 100644 --- a/core/src/io/anuke/mindustry/Vars.java +++ b/core/src/io/anuke/mindustry/Vars.java @@ -89,7 +89,7 @@ public class Vars{ //camera zoom displayed on startup public static int baseCameraScale; public static boolean showBlockDebug = false; - public static boolean showFog = true; + public static boolean showFog = false; public static boolean headless = false; public static float controllerMin = 0.25f; public static float baseControllerSpeed = 11f; diff --git a/core/src/io/anuke/mindustry/core/Renderer.java b/core/src/io/anuke/mindustry/core/Renderer.java index 53e88afd86..0841ef78bd 100644 --- a/core/src/io/anuke/mindustry/core/Renderer.java +++ b/core/src/io/anuke/mindustry/core/Renderer.java @@ -242,15 +242,9 @@ public class Renderer extends RendererModule{ overlays.drawTop(); if(showFog){ - // Graphics.surface(); - }else{ - // Graphics.flushSurface(); - } - - //batch.end(); - - if(showFog){ - // fog.draw(); + batch.end(); + fog.draw(); + batch.begin(); } batch.getTransformMatrix().idt(); diff --git a/tools/src/io/anuke/mindustry/Generators.java b/tools/src/io/anuke/mindustry/Generators.java index 8f13d89404..fc67d0392f 100644 --- a/tools/src/io/anuke/mindustry/Generators.java +++ b/tools/src/io/anuke/mindustry/Generators.java @@ -159,9 +159,11 @@ public class Generators { Image image = ImageContext.get(base.name + (i+1)); Image shadow = ImageContext.get(item.name + (i+1)); + int offset = 3; + for (int x = 0; x < image.width(); x++) { - for (int y = 2; y < image.height(); y++) { - Color color = shadow.getColor(x, y - 2); + for (int y = offset; y < image.height(); y++) { + Color color = shadow.getColor(x, y - offset); //draw semi transparent background if(color.a > 0.001f){