mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-18 03:37:44 +07:00
space
This commit is contained in:
@ -943,6 +943,7 @@ block.cliff.name = Cliff
|
|||||||
block.sand-boulder.name = Sand Boulder
|
block.sand-boulder.name = Sand Boulder
|
||||||
block.grass.name = Grass
|
block.grass.name = Grass
|
||||||
block.slag.name = Slag
|
block.slag.name = Slag
|
||||||
|
block.space.name = Space
|
||||||
block.salt.name = Salt
|
block.salt.name = Salt
|
||||||
block.salt-wall.name = Salt Wall
|
block.salt-wall.name = Salt Wall
|
||||||
block.pebbles.name = Pebbles
|
block.pebbles.name = Pebbles
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#define HIGHP
|
#define HIGHP
|
||||||
#define NSCALE 2000.0
|
#define NSCALE 1800.0
|
||||||
#define CAMSCALE (NSCALE*1.1)
|
#define CAMSCALE (NSCALE*1.1)
|
||||||
|
|
||||||
uniform sampler2D u_texture;
|
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);
|
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);
|
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;
|
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;
|
if(headless || region == null || !Core.atlas.isFound(region)) return;
|
||||||
|
|
||||||
Tile tile = world.tileWorld(x, y);
|
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 decal = Decal.create();
|
||||||
decal.set(x, y);
|
decal.set(x, y);
|
||||||
|
@ -197,13 +197,14 @@ public class Shaders{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//seed: 8kmfuix03fw
|
||||||
public static class SpaceShader extends SurfaceShader{
|
public static class SpaceShader extends SurfaceShader{
|
||||||
Texture texture;
|
Texture texture;
|
||||||
|
|
||||||
public SpaceShader(String frag){
|
public SpaceShader(String frag){
|
||||||
super(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 = (Texture)t;
|
||||||
texture.setFilter(TextureFilter.linear);
|
texture.setFilter(TextureFilter.linear);
|
||||||
texture.setWrap(TextureWrap.mirroredRepeat);
|
texture.setWrap(TextureWrap.mirroredRepeat);
|
||||||
|
@ -23,10 +23,6 @@ public class PlanetRenderer implements Disposable{
|
|||||||
shadowColor = new Color(0, 0, 0, 0.7f);
|
shadowColor = new Color(0, 0, 0, 0.7f);
|
||||||
|
|
||||||
private static final Seq<Vec3> points = new Seq<>();
|
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. */
|
/** Camera direction relative to the planet. Length is determined by zoom. */
|
||||||
public final Vec3 camPos = new Vec3();
|
public final Vec3 camPos = new Vec3();
|
||||||
|
@ -175,7 +175,6 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(launchSector != null){
|
if(launchSector != null){
|
||||||
|
Reference in New Issue
Block a user