mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
space
This commit is contained in:
parent
2c905cdbf1
commit
c7f1204119
@ -943,6 +943,7 @@ block.cliff.name = Cliff
|
||||
block.sand-boulder.name = Sand Boulder
|
||||
block.grass.name = Grass
|
||||
block.slag.name = Slag
|
||||
block.space.name = Space
|
||||
block.salt.name = Salt
|
||||
block.salt-wall.name = Salt Wall
|
||||
block.pebbles.name = Pebbles
|
||||
|
@ -1,5 +1,5 @@
|
||||
#define HIGHP
|
||||
#define NSCALE 2000.0
|
||||
#define NSCALE 1800.0
|
||||
#define CAMSCALE (NSCALE*1.1)
|
||||
|
||||
uniform sampler2D u_texture;
|
||||
@ -17,7 +17,7 @@ void main(){
|
||||
vec2 coords = vec2(c.x * u_resolution.x + u_campos.x, c.y * u_resolution.y + u_campos.y);
|
||||
|
||||
vec4 color = texture2D(u_texture, c);
|
||||
color.rgb = texture2D(u_stars, coords / NSCALE + vec2(0.5, 0.3) - u_ccampos / CAMSCALE);
|
||||
color.rgb = texture2D(u_stars, coords / NSCALE + vec2(0.3, 0.3) - u_ccampos / CAMSCALE).rgb;
|
||||
|
||||
gl_FragColor = color;
|
||||
}
|
BIN
core/assets/sprites/space.png
Normal file
BIN
core/assets/sprites/space.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -175,7 +175,6 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(launchSector != null){
|
||||
|
Loading…
Reference in New Issue
Block a user