Removal of unused assets/classes
This commit is contained in:
@@ -15,12 +15,10 @@ import mindustry.type.*;
|
||||
import static mindustry.Vars.renderer;
|
||||
|
||||
public class Shaders{
|
||||
public static Shadow shadow;
|
||||
public static BlockBuild blockbuild;
|
||||
public static @Nullable Shield shield;
|
||||
public static UnitBuild build;
|
||||
public static FogShader fog;
|
||||
public static MenuShader menu;
|
||||
public static LightShader light;
|
||||
public static SurfaceShader water, tar, slag;
|
||||
public static PlanetShader planet;
|
||||
@@ -30,7 +28,6 @@ public class Shaders{
|
||||
public static Shader unlit;
|
||||
|
||||
public static void init(){
|
||||
shadow = new Shadow();
|
||||
blockbuild = new BlockBuild();
|
||||
try{
|
||||
shield = new Shield();
|
||||
@@ -41,7 +38,6 @@ public class Shaders{
|
||||
}
|
||||
build = new UnitBuild();
|
||||
fog = new FogShader();
|
||||
menu = new MenuShader();
|
||||
light = new LightShader();
|
||||
water = new SurfaceShader("water");
|
||||
tar = new SurfaceShader("tar");
|
||||
@@ -131,25 +127,6 @@ public class Shaders{
|
||||
|
||||
}
|
||||
|
||||
public static class MenuShader extends LoadShader{
|
||||
float time = 0f;
|
||||
|
||||
public MenuShader(){
|
||||
super("menu", "default");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply(){
|
||||
time = time % 158;
|
||||
|
||||
setUniformf("u_resolution", Core.graphics.getWidth(), Core.graphics.getHeight());
|
||||
setUniformi("u_time", (int)(time += Core.graphics.getDeltaTime() * 60f));
|
||||
setUniformf("u_uv", Core.atlas.white().getU(), Core.atlas.white().getV());
|
||||
setUniformf("u_scl", Scl.scl(1f));
|
||||
setUniformf("u_uv2", Core.atlas.white().getU2(), Core.atlas.white().getV2());
|
||||
}
|
||||
}
|
||||
|
||||
public static class FogShader extends LoadShader{
|
||||
public FogShader(){
|
||||
super("fog", "default");
|
||||
@@ -176,23 +153,6 @@ public class Shaders{
|
||||
}
|
||||
}
|
||||
|
||||
public static class Shadow extends LoadShader{
|
||||
public Color color = new Color();
|
||||
public TextureRegion region = new TextureRegion();
|
||||
public float scl;
|
||||
|
||||
public Shadow(){
|
||||
super("shadow", "default");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply(){
|
||||
setUniformf("u_color", color);
|
||||
setUniformf("u_scl", scl);
|
||||
setUniformf("u_texsize", region.getTexture().getWidth(), region.getTexture().getHeight());
|
||||
}
|
||||
}
|
||||
|
||||
public static class BlockBuild extends LoadShader{
|
||||
public Color color = new Color();
|
||||
public float progress;
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
package mindustry.graphics;
|
||||
|
||||
import arc.*;
|
||||
import arc.fx.*;
|
||||
|
||||
public class SnowFilter extends FxFilter{
|
||||
|
||||
public SnowFilter(){
|
||||
super(compileShader(Core.files.internal("shaders/screenspace.vert"), Core.files.internal("shaders/snow.frag")));
|
||||
autobind = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setParams(){
|
||||
shader.setUniformf("u_time", time / 60f);
|
||||
shader.setUniformf("u_pos", Core.camera.position.x - Core.camera.width / 2, Core.camera.position.y - Core.camera.height / 2);
|
||||
shader.setUniformf("u_resolution", Core.camera.width, Core.camera.height);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user