mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +03:00
Boulder shadow rendering fix
This commit is contained in:
@@ -770,7 +770,7 @@ public class Blocks{
|
||||
}};
|
||||
|
||||
//1px outline + 4.50 gaussian shadow in gimp
|
||||
arkyicBoulder = new StaticProp("arkyic-boulder"){{
|
||||
arkyicBoulder = new Prop("arkyic-boulder"){{
|
||||
variants = 3;
|
||||
customShadow = true;
|
||||
arkyicStone.asFloor().decoration = this;
|
||||
@@ -801,22 +801,22 @@ public class Blocks{
|
||||
shadowOffset = -2.5f;
|
||||
}};
|
||||
|
||||
crystallineBoulder = new Prop("crystalline-boulder"){{
|
||||
crystallineBoulder = new StaticProp("crystalline-boulder"){{
|
||||
variants = 2;
|
||||
crystallineStone.asFloor().decoration = this;
|
||||
}};
|
||||
|
||||
redIceBoulder = new Prop("red-ice-boulder"){{
|
||||
redIceBoulder = new StaticProp("red-ice-boulder"){{
|
||||
variants = 3;
|
||||
redIce.asFloor().decoration = this;
|
||||
}};
|
||||
|
||||
rhyoliteBoulder = new Prop("rhyolite-boulder"){{
|
||||
rhyoliteBoulder = new StaticProp("rhyolite-boulder"){{
|
||||
variants = 3;
|
||||
rhyolite.asFloor().decoration = roughRhyolite.asFloor().decoration = this;
|
||||
}};
|
||||
|
||||
redStoneBoulder = new Prop("red-stone-boulder"){{
|
||||
redStoneBoulder = new StaticProp("red-stone-boulder"){{
|
||||
variants = 4;
|
||||
denseRedStone.asFloor().decoration = redStone.asFloor().decoration = this;
|
||||
}};
|
||||
|
||||
@@ -5,6 +5,7 @@ import arc.graphics.*;
|
||||
import arc.graphics.Texture.*;
|
||||
import arc.graphics.g2d.*;
|
||||
import arc.graphics.gl.*;
|
||||
import arc.input.*;
|
||||
import arc.math.*;
|
||||
import arc.math.geom.*;
|
||||
import arc.struct.*;
|
||||
@@ -669,7 +670,7 @@ public class BlockRenderer{
|
||||
|
||||
drawDestroyed();
|
||||
|
||||
if(chunksToDraw.size > 0){
|
||||
if(chunksToDraw.size > 0 && !input.keyDown(KeyCode.y)){
|
||||
|
||||
for(int mlayer = 0; mlayer < BuildingCacheLayer.amount; mlayer++){
|
||||
int layer = mlayer;
|
||||
|
||||
Reference in New Issue
Block a user