Fixed minimap / Improved ore shadows

This commit is contained in:
Anuken 2018-11-14 18:15:47 -05:00
parent 568e43cf3d
commit 21f3f52c7b
4 changed files with 8 additions and 12 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 KiB

After

Width:  |  Height:  |  Size: 339 KiB

View File

@ -89,7 +89,7 @@ public class Vars{
//camera zoom displayed on startup //camera zoom displayed on startup
public static int baseCameraScale; public static int baseCameraScale;
public static boolean showBlockDebug = false; public static boolean showBlockDebug = false;
public static boolean showFog = true; public static boolean showFog = false;
public static boolean headless = false; public static boolean headless = false;
public static float controllerMin = 0.25f; public static float controllerMin = 0.25f;
public static float baseControllerSpeed = 11f; public static float baseControllerSpeed = 11f;

View File

@ -242,15 +242,9 @@ public class Renderer extends RendererModule{
overlays.drawTop(); overlays.drawTop();
if(showFog){ if(showFog){
// Graphics.surface(); batch.end();
}else{ fog.draw();
// Graphics.flushSurface(); batch.begin();
}
//batch.end();
if(showFog){
// fog.draw();
} }
batch.getTransformMatrix().idt(); batch.getTransformMatrix().idt();

View File

@ -159,9 +159,11 @@ public class Generators {
Image image = ImageContext.get(base.name + (i+1)); Image image = ImageContext.get(base.name + (i+1));
Image shadow = ImageContext.get(item.name + (i+1)); Image shadow = ImageContext.get(item.name + (i+1));
int offset = 3;
for (int x = 0; x < image.width(); x++) { for (int x = 0; x < image.width(); x++) {
for (int y = 2; y < image.height(); y++) { for (int y = offset; y < image.height(); y++) {
Color color = shadow.getColor(x, y - 2); Color color = shadow.getColor(x, y - offset);
//draw semi transparent background //draw semi transparent background
if(color.a > 0.001f){ if(color.a > 0.001f){