diff --git a/core/src/mindustry/core/Renderer.java b/core/src/mindustry/core/Renderer.java index 0e0ac343d4..46a042d0df 100644 --- a/core/src/mindustry/core/Renderer.java +++ b/core/src/mindustry/core/Renderer.java @@ -2,7 +2,6 @@ package mindustry.core; import arc.*; import arc.files.*; -import arc.fx.*; import arc.graphics.*; import arc.graphics.g2d.*; import arc.graphics.gl.*; @@ -38,8 +37,6 @@ public class Renderer implements ApplicationListener{ public float minZoom = 1.5f, maxZoom = 6f; private @Nullable CoreBuild landCore; - //TODO unused - private FxProcessor fx = new FxProcessor(); private Color clearColor = new Color(0f, 0f, 0f, 1f); private float targetscale = Scl.scl(4); private float camerascale = targetscale; @@ -136,11 +133,6 @@ public class Renderer implements ApplicationListener{ Events.fire(new DisposeEvent()); } - @Override - public void resize(int width, int height){ - fx.resize(width, height); - } - @Override public void resume(){ if(settings.getBool("bloom") && bloom != null){ @@ -175,23 +167,6 @@ public class Renderer implements ApplicationListener{ } } - void beginFx(){ - if(!fx.hasEnabledEffects()) return; - - Draw.flush(); - fx.clear(); - fx.begin(); - } - - void endFx(){ - if(!fx.hasEnabledEffects()) return; - - Draw.flush(); - fx.end(); - fx.applyEffects(); - fx.render(0, 0, fx.getWidth(), fx.getHeight()); - } - void updateShake(float scale){ if(shaketime > 0){ float intensity = shakeIntensity * (settings.getInt("screenshake", 4) / 4f) * scale;