mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 15:19:24 +07:00
Fixed minimap / Improved ore shadows
This commit is contained in:
parent
568e43cf3d
commit
21f3f52c7b
Binary file not shown.
Before Width: | Height: | Size: 338 KiB After Width: | Height: | Size: 339 KiB |
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user