This commit is contained in:
Anuken
2020-10-08 15:14:28 -04:00
parent 2c905cdbf1
commit c7f1204119
7 changed files with 6 additions and 9 deletions

View File

@@ -146,7 +146,7 @@ public class Effect{
if(headless || region == null || !Core.atlas.isFound(region)) return;
Tile tile = world.tileWorld(x, y);
if(tile == null || tile.floor().isLiquid) return;
if(tile == null || !tile.floor().hasSurface()) return;
Decal decal = Decal.create();
decal.set(x, y);

View File

@@ -197,13 +197,14 @@ public class Shaders{
}
}
//seed: 8kmfuix03fw
public static class SpaceShader extends SurfaceShader{
Texture texture;
public SpaceShader(String frag){
super(frag);
Core.assets.load("cubemaps/stars/bottom.png", Texture.class).loaded = t -> {
Core.assets.load("sprites/space.png", Texture.class).loaded = t -> {
texture = (Texture)t;
texture.setFilter(TextureFilter.linear);
texture.setWrap(TextureWrap.mirroredRepeat);

View File

@@ -23,10 +23,6 @@ public class PlanetRenderer implements Disposable{
shadowColor = new Color(0, 0, 0, 0.7f);
private static final Seq<Vec3> points = new Seq<>();
private static final PlanetInterfaceRenderer emptyRenderer = new PlanetInterfaceRenderer(){
@Override public void renderSectors(Planet planet){}
@Override public void renderProjections(){}
};
/** Camera direction relative to the planet. Length is determined by zoom. */
public final Vec3 camPos = new Vec3();

View File

@@ -175,7 +175,6 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
}
}
}
}
if(launchSector != null){