Removed unused fx

This commit is contained in:
Anuken
2021-02-07 12:12:15 -05:00
parent ea9d415b92
commit c5ed056601

View File

@@ -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;